-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b48
-
generic
-
solaris_8
The following program crashes the runtime, even after 4979440 is fixed.
import java.lang.reflect.*;
class A<T> {
class B<U> {}
}
class Main {
public void f(A<String>.B<Integer> x) {
}
public static void main(String[] args) throws Exception {
Method m = Main.class.getMethod("f", A.B.class);
Type param = m.getGenericParameterTypes()[0];
System.out.println(param.toString());
}
}
import java.lang.reflect.*;
class A<T> {
class B<U> {}
}
class Main {
public void f(A<String>.B<Integer> x) {
}
public static void main(String[] args) throws Exception {
Method m = Main.class.getMethod("f", A.B.class);
Type param = m.getGenericParameterTypes()[0];
System.out.println(param.toString());
}
}
- relates to
-
JDK-4992019 Invalid generic signature attributes in two javax.crypto classes
- Closed
-
JDK-4942991 Signatures for nested classes contain redundant information
- Resolved
-
JDK-4979440 (reflect) Method.getGenericReturnType() fails on jdk class
- Closed