Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6376382

(reflect) Confusing output for ParameterizedTypeImpl.toString() with nested class parameter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                akosarev Artem Kosarev (Inactive)
                Reporter:
                emcmanus Eamonn McManus
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: