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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: