Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0-beta-1
-
None
-
windows 64bit, java 8_102 64bit, gradlew, current mingw, current github head (latest commit d1fdc38c2c2c0539b434326b37b813328ced96a4 of 2016-09-08)
Description
running ./gradlew build on the current head without the indy option lets the :javadoc target fail due to java 7 code (diamond operator) in groovy reflection code and the fact that gradle/docs.gradle sets source = rootProject.useIndy()?'1.7':'1.6'.
./gradlew -Pindy=true javadoc works, ./gradlew -Pindy=false javadoc produces the following error
:javadocD:\Projekte\Groovy\groovy\src\main\org\codehaus\groovy\reflection\CachedClass.java:89: error: diamond operator is not supported in -source 1.6 final ArrayList<AccessibleObject> ret = new ArrayList<>(aoa.length); ^ (use -source 7 or higher to enable diamond operator) 1 error :javadoc FAILED