JDK-6376382 : (reflect) Confusing output for ParameterizedTypeImpl.toString() with nested class parameter
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-01-24
  • Updated: 2016-10-20
  • Resolved: 2016-10-20
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
This code:
    System.out.println(java.util.Map.class.getMethod("entrySet").getGenericReturnType());
produces this output:
    java.util.Set<java.util.Map.java.util.Map$Entry<K, V>>
rather than the expected:
    java.util.Set<java.util.Map$Entry<K, V>>

This is with Tiger and with Mustang b68.

Comments
Same as JDK-8020194, issue is solved in JDK 9 b129. After analysis and simple debugging issue confirmed to be a duplicate of JDK-8054213.
20-10-2016

EVALUATION Should be fixed.
24-01-2006