Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
ADDITIONAL SYSTEM INFORMATION : Tested on linux A DESCRIPTION OF THE PROBLEM : Package annotation on package-info.java is not properly processed REGRESSION : Last worked in version 11 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See complete example on github EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Javadoc processing completed without problems. This works in java 11. ACTUAL - Javadoc is reporting two errors: /home/cigaly/workspace/bug12/src/main/java/test/package-info.java:1: error: unknown tag: NamedQuery @NamedQuery(name = "q1", query = "select something from somwhere where anything>1") ^ /home/cigaly/workspace/bug12/src/main/java/test/package-info.java:1: error: bad use of '>' @NamedQuery(name = "q1", query = "select something from somwhere where anything>1") ^ 2 errors ---------- BEGIN SOURCE ---------- Complete simplified example is on github at https://github.com/cigaly/bug12 package-info.java: @NamedQuery(name = "q1", query = "select something from somwhere where anything>1") package test; import test.annotation.NamedQuery; NamedQuery.java annotation: package test.annotation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.PACKAGE; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Target({ TYPE, PACKAGE }) @Retention(RUNTIME) public @interface NamedQuery { String name(); String query(); } ---------- END SOURCE ---------- FREQUENCY : always
|