Fix generation of Javadoc on Java 9

This commit fixes Javadoc generation when building with Java 9. It
upgrades the Javadoc plugin to a version that is Java 9 compatible
(3.0.0-M1) and reworks DevTools to remove usage of @PostConstruct.
The latter change is necessary as @PostConstruct is not visible by
default when building with Java 9 and, therefore its usage causes
Javadoc generation to fail.

Closes gh-10029
This commit is contained in:
Andy Wilkinson
2017-09-25 06:43:07 +01:00
parent 43ff84e214
commit dd4dbce816
5 changed files with 26 additions and 22 deletions
@@ -55,7 +55,7 @@ public class HateoasObjenesisCacheDisablerTests {
@Test
public void cacheIsDisabled() {
new HateoasObjenesisCacheDisabler().doDisableCaching();
new HateoasObjenesisCacheDisabler().afterPropertiesSet();
assertThat(this.objenesis.getInstantiatorOf(TestObject.class))
.isNotSameAs(this.objenesis.getInstantiatorOf(TestObject.class));
}