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

(reflect) Class.getMethods () returns duplicates for star inheritance

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.1
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      x86
    • OS:
      windows_2000
    • Verification:
      Verified

      Description

      Bug is related to JDK 1.4.0, build 1.4.0-b92

      Steps to reproduce:
      Compile and run TestCase class included in attachments (the class imports classes in jmi.jar - included in attachments too).
      TestCase calls getMethods on javax.jmi.model.Attribute.class, prints the number of returned Methods and scans how many instances of Method representing getContainer method are in the result.

      JDK 1.3.1: getMethods returns 43 Methods
      JDK 1.4.0: getMethods returns 74 Methods (due to duplicates, e.g. the same instance of Method representing getContainer method is returned two times)

      Source files of all related classes and interfaces are included in jmi.jar

        Attachments

          Activity

            People

            • Assignee:
              iris Iris Clark
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: