United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6685095 : NPE in test/closed/compiler/5098422/Test.java under fastdebug

Details
Type:
Bug
Submit Date:
2008-04-07
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2008-12-23
Component:
hotspot
OS:
windows_xp,windows
Sub-Component:
test
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs11,hs12,hs13
Fixed Versions:
hs14 (b10)

Related Reports
Backport:
Backport:

Sub Tasks

Description
test/closed/compiler/5098422/Test.java under fastdebug mode fails with:
----------System.out:(8/347)----------
Exception in thread "main" java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
	at Test.t(Test.java:27)
	at Test.main(Test.java:21)
VM option '-OmitStackTraceInFastThrow'
VM option '-OmitStackTraceInFastThrow'
Exception in thread "main" java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
----------System.err:(1/44)----------
java full version "1.7.0-ea-fastdebug-b24"
result: Failed. Execution failed: exit code 1


Reproduced with both
/net/sqenfs-1.sfbay/export1/comp/vm/jdk/7/nightly/fastdebug/main_baseline/
and jdk7b24: /java/re/jdk/7/promoted/all/b24/binaries/  
Haven't tried to reproduce with versions older than hs12
Proper test name for known_fail list is
closed/compiler/5098422/Test.java

                                    

Comments
EVALUATION

This test is supposed to throw a NPE.  The test probably fails because the output includes printing the VM Option.  It's testing that the VM option OmitStackTraceInFastThrow is recognized, which it is.

crocker% gamma -Xcomp -XX:-OmitStackTraceInFastThrow Test
VM option '-OmitStackTraceInFastThrow'
Exception in thread "main" java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at Test.t(Test.java:27)
        at Test.main(Test.java:21)

Should I close as not a bug, or reassign to hotspot-test (can never remember product and category for that).  thanks.
                                     
2008-12-10
EVALUATION

This test is from HotSpot regression workspace.
So, if you think this is test bug and test needs to be updated
then it is still HS engineers responsibility to fix this test.
Transfer this bug under 'test' sub_category.
                                     
2008-12-10
EVALUATION

That's right, I fixed the test to add -XX:-PrintVMOptions so it didn't report that the test failed because it printed out the option it was checking for.
                                     
2008-12-11



Hardware and Software, Engineered to Work Together