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

JDI: ReferenceType.visibleMethods() return wrong visible methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • core-svc
    • None
    • b01

        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.

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

                Created:
                Updated:
                Resolved: