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

GetMethodLocation() works incorrectly for native method

XMLWordPrintable

    • sol-beta2
    • generic, x86, sparc
    • generic, solaris_7, windows_nt
    • Not verified



      Name: dkC59003 Date: 01/18/2000


      The regression test (testbase_nsk) nsk/regression/regresab27 fails
      under the HotSpot Client VM (build 1.3.0rc1-S) on Solaris.

      The test uses GetMethodLocation() method to obtain locations of the
      native static method. According to the JVMDI specification both the start
      location and the end location values for this method should be equal
      to -1 value. But in fact the returned start location value for
      this method equals 0 .

      To reproduce the bug run doit.sh in
      /net/sqesvr/vsn/GammaBase/Bugs/<this bug number>.

      The first parameter for doit.bat should be JDK root directory
      (e.g. /usr/local/java/jdk1.3/solaris) and the second parameter is
      VM option(s) (optional).


      See log:

      % doit.sh /export/java/jdk1.3.0S/solaris
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode)
      ==> nsk/regression/regresab27 TEST LOG:
      ----> naitiveTestMethod: start_location = 0
      ----> end_location = -1
      ==> Test nsk/regression/regresab27 FAILED
      ----> Expected result: start_method_location = -1
      ----> end_method_location = -1


      ======================================================================

            dcubed Daniel Daugherty
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: