-
Bug
-
Resolution: Fixed
-
P3
-
12, 13
-
b24
-
x86_64
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225950 | 14 | Hannes Wallnoefer | P3 | Resolved | Fixed | team |
JDK-8296781 | 11.0.19-oracle | Christian Stein | P3 | Resolved | Fixed | b01 |
JDK-8297889 | 11.0.18 | Liam Miller-Cushon | P3 | Resolved | Fixed | b06 |
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
- backported by
-
JDK-8225950 Javadoc does not handle package annotations correctly on package-info.java
- Resolved
-
JDK-8296781 Javadoc does not handle package annotations correctly on package-info.java
- Resolved
-
JDK-8297889 Javadoc does not handle package annotations correctly on package-info.java
- Resolved
- duplicates
-
JDK-8222255 Javadoc fails with package annotation (error: unknown tag)
- Closed
-
JDK-8295850 Backport of JDK-8193462 to JDK 11 reintroduces JDK-8222091
- Closed
-
JDK-8223117 javadoc confused OSGi version annotations with Javadoc tags
- Closed
- relates to
-
JDK-8193462 Fix Filer handling of package-info initial elements
- Resolved
-
JDK-8295850 Backport of JDK-8193462 to JDK 11 reintroduces JDK-8222091
- Closed
- links to
-
Commit openjdk/jdk11u-dev/09d50d9d
-
Review openjdk/jdk11u-dev/1472
-
Review openjdk/jdk11u-dev/1475