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

JDI: ReferenceType.visibleMethods() return wrong visible methods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b01

      Backports

        Description

        Consider:

        interface Super {
          public void m(Object o);
          public void m(String s);
        }
        interface One extends Super {
          public void m(Object o);
        }
        interface Two extends Super {
          public void m(String s);
        }
        abstract class AC implements One, Two {
        }

        ReferenceType.visibleMethods(AC) should return:

          One.m(Object)
          Two.m(String)

        but currently returns one of the methods from Super.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sla Staffan Larsen (Inactive)
                Reporter:
                sla Staffan Larsen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: