-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
sol-beta
-
sparc
-
solaris_7
Name: dkC59003 Date: 04/10/2000
The regression test (testbase_nsk) nsk/regression/b4303423 fails under
the HotSpot Client VM (build product+2.0+baseline+compiler1+20000401-003153, compiled mode)
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.
When the test runs under the HotSpot in the compiled mode
a NullPointerException is thrown instead of AbstractMethodError.
In the mixed and interpreted modes the test passes.
To reproduce the bug run doit.sh on Solaris in
/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>:
doit.sh <JDK root directory> -Xcomp
The first parameter for doit.sh should be JDK root directory
(e.g. /export/ld/java/jdk1.3/solaris) and the other parameter(s) -
VM option(s) (optional, e.g. -Xcomp for the current case).
This bug had been fixed and integrated (see #4303925) but shows nonetheless.
See logs:
In compiled mode:
% doit.sh /net/java7/d/bond/java/dest/Solaris_JDK_1.3-b09 -Xcomp
java version "1.3"
Java(TM) 2 Runtime Environment, Standard Edition (build Solaris_JDK_1.3-b09)
Java HotSpot(TM) Client VM (build product+2.0+baseline+compiler1+20000401-003153, compiled mode)
==> 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
In mixed mode:
% doit.sh /net/java7/d/bond/java/dest/Solaris_JDK_1.3-b09
java version "1.3"
Java(TM) 2 Runtime Environment, Standard Edition (build Solaris_JDK_1.3-b09)
Java HotSpot(TM) Client VM (build product+2.0+baseline+compiler1+20000401-003153, mixed mode)
==> nsk/regression/b4303423 test LOG:
----> b4303423a: test_method() is running
----> b4303423b: test_method() is running
==> nsk/regression/b4303423 test PASSED
----> Expected result recieved: AbstractMethodError
In interpreted mode:
% doit.sh /net/java7/d/bond/java/dest/Solaris_JDK_1.3-b09 -Xint
java version "1.3"
Java(TM) 2 Runtime Environment, Standard Edition (build Solaris_JDK_1.3-b09)
Java HotSpot(TM) Client VM (build product+2.0+baseline+compiler1+20000401-003153, interpreted mode)
==> nsk/regression/b4303423 test LOG:
----> b4303423a: test_method() is running
----> b4303423b: test_method() is running
==> nsk/regression/b4303423 test PASSED
----> Expected result recieved: AbstractMethodError
======================================================================
- relates to
-
JDK-4303925 Crash instead of throwing AbstractMethodError
-
- Resolved
-
-
JDK-4303423 Null Ptr exception instead of AbstractMethod error
-
- Closed
-
-
JDK-4306452 HotSpot VM throws NullPointerException instead of AbstractMethodError on Solaris
-
- Closed
-