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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: