JDK-8028430 : JDI: ReferenceType.visibleMethods() return wrong visible methods
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-11-15
  • Updated: 2015-01-21
  • Resolved: 2013-12-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b01Fixed
Related Reports
Relates :  
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.
Comments
JDK-4990369 was filed for SAJDI, but the same problem exists in JDI.
15-11-2013