-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b138
-
generic
-
generic
-
Verified
A recent fix to javac (6993311) means that annotations on packages are now validated. This exposes an existing test in the jdk repository that needs to be re-examined.
--------------------------------------------------
TEST: java/lang/annotation/package-info.java
JDK under test: (/tmp/jprt/P2/T/093336.ab23780/testproduct/linux_x64_2.6-product)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-201103220933.ab23780.TL-b00)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b04, mixed mode)
ACTION: compile -- Failed. Compilation failed: Compilation failed
REASON: User specified action: run compile package-info.java PackageMain.java
TIME: 0.02 seconds
messages:
command: compile /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/PackageMain.java
reason: User specified action: run compile package-info.java PackageMain.java
elapsed time (seconds): 0.02
direct:
/tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java:34: error: annotation type not applicable to this kind of declaration
@java.lang.annotation.Documented
^
1 error
TEST RESULT: Failed. Compilation failed: Compilation failed
--------------------------------------------------
--------------------------------------------------
TEST: java/lang/annotation/package-info.java
JDK under test: (/tmp/jprt/P2/T/093336.ab23780/testproduct/linux_x64_2.6-product)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-201103220933.ab23780.TL-b00)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b04, mixed mode)
ACTION: compile -- Failed. Compilation failed: Compilation failed
REASON: User specified action: run compile package-info.java PackageMain.java
TIME: 0.02 seconds
messages:
command: compile /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/PackageMain.java
reason: User specified action: run compile package-info.java PackageMain.java
elapsed time (seconds): 0.02
direct:
/tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java:34: error: annotation type not applicable to this kind of declaration
@java.lang.annotation.Documented
^
1 error
TEST RESULT: Failed. Compilation failed: Compilation failed
--------------------------------------------------
- duplicates
-
JDK-7033522 TEST: java/lang/annotation/package-info.java test fails starting from jdk7 b136
-
- Closed
-
- relates to
-
JDK-6993311 annotations on packages are not validated
-
- Closed
-