JDK-4987888 : (reflect) Generic signature for inner classes crashes runtime
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2004-02-03
  • Updated: 2012-09-28
  • Resolved: 2004-04-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b48Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
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());
    }
}

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b48 tiger-beta2
14-06-2004

EVALUATION Can't be fixed until 4942991 is addressed. ###@###.### 2004-02-05
05-02-2004