Karsten Tinnefeld created GROOVY-7931:
-----------------------------------------
Summary: javadoc generation fails for non-indy build
Key: GROOVY-7931
URL: https://issues.apache.org/jira/browse/GROOVY-7931
Project: Groovy
Issue Type: Bug
Components: Documentation
Affects Versions: 2.4.7
Environment: windows 64bit, java 8_102 64bit, gradlew, current mingw,
current github head (latest commit d1fdc38c2c2c0539b434326b37b813328ced96a4 of
2016-09-08)
Reporter: Karsten Tinnefeld
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
{noformat}
: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
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)