-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b08
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045140 | 8u25 | Jan Lahoda | P2 | Resolved | Fixed | b01 |
JDK-8037243 | 8u20 | Jan Lahoda | P2 | Closed | Fixed | b11 |
JDK-8052579 | emb-8u26 | Jan Lahoda | P2 | Resolved | Fixed | b17 |
This test case used to result in a crash. The crash was fixed in b120 and this test case now unexpectedly compiles when using jdk8 javac and -source 7.
@interface Simple {}
class Test {
void m1() { Integer i = new @Simple Integer(10); }
void m2() { throw new @Simple RuntimeException(); }
}
It fails to compile as expected with jdk7 and jdk8.
@interface Simple {}
class Test {
void m1() { Integer i = new @Simple Integer(10); }
void m2() { throw new @Simple RuntimeException(); }
}
It fails to compile as expected with jdk7 and jdk8.
- backported by
-
JDK-8045140 jdk8 javac -source 7 compiles test case it should not
-
- Resolved
-
-
JDK-8052579 jdk8 javac -source 7 compiles test case it should not
-
- Resolved
-
-
JDK-8037243 jdk8 javac -source 7 compiles test case it should not
-
- Closed
-
- relates to
-
JDK-8037348 RuntimeInvisibleAnnotations should not be generated for type annotation on anonymous innerclass creation
-
- Closed
-