-
Bug
-
Resolution: Done
-
Major
-
4.2.0.Final
-
None
With the following code:
@NameBinding @Retention(RetentionPolicy.RUNTIME) public @interface LoggingBinding { }
The error message is
The Name Binding should have a @Target(ElementType.METHOD) annotation on its type.
but it should be
The Name Binding should have a @Target({ElementType.TYPE, ElementType.METHOD}) annotation on its type.
Note that the QuickFix adds the correct @Target({ElementType.TYPE, ElementType.METHOD}), it's just that the initial error message was misleading
- is cloned by
-
JBIDE-18807 Invalid error message when @Target is missing on a custom Name Binding annotation
- Closed