-
Bug
-
Resolution: Fixed
-
P3
-
9, 10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8248014 | 11.0.9-oracle | Adam Sotona | P3 | Resolved | Fixed | b01 |
The following code crashes the compiler:
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
class TestAnno {
@Target(value = {ElementType.TYPE_USE})
@interface A{}
class Sup<X, Y> { }
class Sub<U extends @A V, @A V extends String> extends Sup<U, V> { }
}
This is a reduced test case obtained from this:
https://github.com/wildfly/typeannotation-test/blob/master/src/main/java/test/VExample.java#L117
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
class TestAnno {
@Target(value = {ElementType.TYPE_USE})
@interface A{}
class Sup<X, Y> { }
class Sub<U extends @A V, @A V extends String> extends Sup<U, V> { }
}
This is a reduced test case obtained from this:
https://github.com/wildfly/typeannotation-test/blob/master/src/main/java/test/VExample.java#L117
- backported by
-
JDK-8248014 annotated type variables bounds crash javac
- Resolved
- duplicates
-
JDK-8242949 javac Null Pointer Exception in Types.erasure
- Closed
-
JDK-8215914 NPE in Types.erasure with type-annotated generic supertype
- Closed
- relates to
-
JDK-8242949 javac Null Pointer Exception in Types.erasure
- Closed