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

HotSpot VM throws NullPointerException instead of AbstractMethodError on Solaris

XMLWordPrintable

    • sparc
    • solaris_7



      Name: dkC59003 Date: 01/21/2000


      The regression test (testbase_nsk) nsk/regression/b4303423 fails
      under the HotSpot Server VM (2.0, build A) on Solaris.

      The test calls the abstract method declared in the interface
      but not defined in the class which implements this interface.
      The test expects an AbstractMethodError to be thrown but
      a NullPointerException is thrown instead.

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

      The first parameter for doit.sh should be JDK root directory
      (e.g. L:/java/jdk1.2.2/solaris) and the other parameter(s) -
      VM option(s) (optional).

      The Classic VM passes the test as well as HotSpot 1.3.0rc1-S on Solaris.

      See log:

      % doit.bat d:/export/java/jdk1.2.2/solaris
      java version "1.2.2"
      Java(TM) HotSpot Server VM (2.0, mixed mode, build A)
      ==> nsk/regression/b4303423 test LOG:
      ----> b4303423a: test_method() is running
      ----> b4303423b: test_method() is running
      ==> nsk/regression/b4303423 test FAILED
      ----> Expected result: AbstractMethodError
      ----> Produced result: java.lang.NullPointerException


      % doit.bat d:/export/java/jdk1.2.2/solaris -classic
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, green threads, sunwjit)
      ==> nsk/regression/b4303423 test LOG:
      ----> b4303423a: test_method() is running
      ----> b4303423b: test_method() is running
      ==> nsk/regression/b4303423 test PASSED
      ----> Expected result recieved: AbstractMethodError


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

      Name: dkC59003 Date: 01/24/2000



      Sorry for confusion.

      1. The line:

      To reproduce the bug run doit.sh on win32 in

      should be replaced by the line:

      To reproduce the bug run doit.sh on solaris in

      2. The command line

      % doit.bat d:/export/java/jdk1.2.2/solaris

      should be replaced by the line:

      % doit.sh /export/java/jdk1.2.2/solaris


      3. The command line

      % doit.bat d:/export/java/jdk1.2.2/solaris -classic

      should be replaced by the line:

      % doit.sh /export/java/jdk1.2.2/solaris -classic


      ###@###.### 2000-01-24



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

            jrose John Rose
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: