Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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:
@Target([PARAMETER, TYPE_USE]) @Retention(RUNTIME) public @interface NonNull { }
will be treated as if it was this:
@Target([PARAMETER]) @Retention(RUNTIME) public @interface NonNull { }
Rather than complain about the unknown TYPE_USE target.