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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.1
    • 1.4.0
    • core-libs
    • hopper
    • x86
    • windows_2000
    • Verified

      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

            iris Iris Clark
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: