United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6776144 java/lang/ThreadGroup/NullThreadName.java fails with Thread group is not destroyed ,fastdebug LINUX
JDK-6776144 : java/lang/ThreadGroup/NullThreadName.java fails with Thread group is not destroyed ,fastdebug LINUX

Details
Type:
Bug
Submit Date:
2008-11-25
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2012-05-07
Component:
core-libs
OS:
linux
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
java/lang/ThreadGroup/NullThreadName.java fails in fastdebug mode on linux-amd64
with 
----------messages:(3/127)----------
command: main NullThreadName
reason: Assumed action based on file name: run main NullThreadName 
elapsed time (seconds): 0.716
----------System.out:(3/117)----------
OK, caught expected java.lang.NullPointerException: name cannot be null
Good Thread started...
Good Thread finishing
----------System.err:(13/768)----------
java.lang.AssertionError: Failed: Thread group is not destroyed.
	at NullThreadName.main(NullThreadName.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:713)

originally failed with -server -Xmixed, but fails with -client too.

                                    

Comments
EVALUATION

This test waits 10 seconds for threads to terminate, but 
on a busy or slow system, this may not be sufficient.
Since the outer jtreg harness allows for 120 seconds
before terminating a test, there's no reason for the 
test to be more restrictive.
                                     
2011-11-22



Hardware and Software, Engineered to Work Together