-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b40
-
generic
-
solaris_8
========================================$ cat -n T.java
1 interface T extends java.lang.annotation.Annotation {
2 }
3
4 class Main {
5 public static void main(String[] args) {
6 if (T.class.isAnnotationType()) throw new Error();
7 }
8 }
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b36)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b36, mixed mode)
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/javac T.java
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/java Main
Exception in thread "main" java.lang.Error
at Main.main(T.java:6)
========================================$
1 interface T extends java.lang.annotation.Annotation {
2 }
3
4 class Main {
5 public static void main(String[] args) {
6 if (T.class.isAnnotationType()) throw new Error();
7 }
8 }
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b36)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b36, mixed mode)
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/javac T.java
========================================$ /java/re/j2se/1.5.0/promoted/latest/binaries/`platform`/bin/java Main
Exception in thread "main" java.lang.Error
at Main.main(T.java:6)
========================================$
- relates to
-
JDK-4990789 (reflect) Class.isEnum incorrect result
- Resolved
-
JDK-4989735 (reflect) Class.isEnum should use new VM flag bit position
- Resolved
-
JDK-4975724 Need ACC_ANNOTATION bit to support JSR175
- Closed