JDK-4323435 : location is not null for an Abstract method
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2000-03-21
  • Updated: 2000-03-21
  • Resolved: 2000-03-21
Related Reports
Duplicate :  
Description
As per the JDI documentation it says , abstract and native Methods
 will return null when their location method is called. But for
 abstract methods the location is returned.
 
 Windows Testing done in (1.3-0-V) build Hotspot and Classic.
 Solaris Testing done in (1.3.0.V)  build Classic..
 The output logfiles are attached for both the Windows and Solaris

Scenario:
 ----------
 1)MethodTest.java
 2)MethodDebugee.java
 3)AbsInterface.java
 
 AbsInterface has an abstract method testMe() which is
 implemented in MethodDebugee.java. Firstly the method is
 tested as to whether it is abstract with the isAbstract() function.
 It is found that  when  testMe().location() executes instead of 
 the expected null value a location value is returned.

 
 Steps to reproduce the bug
 -----------------------------------
 The bug can be reproduced using the files in the location
 /net/sqesvr/export/disk5/toolsbugs/<bugid>
 Follow the instructions in README to reproduce the bug.