JDI: ReferenceType.visibleMethods() return wrong visible methods

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: