You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/06/21 04:43:00 UTC
[jira] [Resolved] (GROOVY-8235) JSR308 avoid compiler errors for
legacy versions
[ https://issues.apache.org/jira/browse/GROOVY-8235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-8235.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.4.12
> JSR308 avoid compiler errors for legacy versions
> ------------------------------------------------
>
> Key: GROOVY-8235
> URL: https://issues.apache.org/jira/browse/GROOVY-8235
> Project: Groovy
> Issue Type: Sub-task
> Reporter: Paul King
> Assignee: Paul King
> Fix For: 2.4.12
>
>
> We should backport a subset of the functionality from GROOVY-8226 so that pre-JDK8 target types are honored and JDK8/9 targets are ignored rather than errors. So basically, this:
> {code}
> @Target([PARAMETER, TYPE_USE])
> @Retention(RUNTIME)
> public @interface NonNull { }
> {code}
> will be treated as if it was this:
> {code}
> @Target([PARAMETER])
> @Retention(RUNTIME)
> public @interface NonNull { }
> {code}
> Rather than complain about the unknown {{TYPE_USE}} target.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)