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

JDI: location is not null for an Abstract method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-svc
    • None
    • beta
    • generic
    • generic
    • Not verified

      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/4323433
       Follow the instructions in README to reproduce the bug.

            rfield Robert Field (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: