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 2018/03/06 23:15:02 UTC
[jira] [Closed] (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 closed GROOVY-8235.
-----------------------------
> 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
> Priority: Major
> 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
(v7.6.3#76005)