[ 
https://issues.apache.org/jira/browse/GROOVY-7931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-7931.
-----------------------------

> 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.5.0-beta-1
>         Environment: windows 64bit, java 8_102 64bit, gradlew, current mingw, 
> current github head (latest commit d1fdc38c2c2c0539b434326b37b813328ced96a4 
> of 2016-09-08)
>            Reporter: tinne
>            Assignee: John Wagenleitner
>             Fix For: 2.5.0-alpha-1
>
>
> 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.15#6346)

Reply via email to