JDK-7011802 : java/util/concurrent/Executors/AutoShutdown.java should run in othervm mode
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-12
  • Updated: 2011-01-13
  • Resolved: 2011-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
CTION: main -- Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some
tests failed
REASON: Assumed action based on file name: run main AutoShutdown
TIME:	2.787 seconds
messages:
command: main AutoShutdown
reason: Assumed action based on file name: run main AutoShutdown
elapsed time (seconds): 2.787
STDOUT:
2 not equal to 1

Passed = 1, failed = 1

STDERR:
java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:1368)
	at AutoShutdown.fail(AutoShutdown.java:75)
	at AutoShutdown.fail(AutoShutdown.java:76)
	at AutoShutdown.equal(AutoShutdown.java:80)
	at AutoShutdown.realMain(AutoShutdown.java:69)
	at AutoShutdown.main(AutoShutdown.java:82)
	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:613)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
	at java.lang.Thread.run(Thread.java:732)java.lang.AssertionError: Some tests failed
	at AutoShutdown.main(AutoShutdown.java:84)
	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:613)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
	at java.lang.Thread.run(Thread.java:732)

JavaTest Message: Test threw exception: java.lang.AssertionError
JavaTest Message: shutting down test


TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tes
ts failed

Comments
EVALUATION Fixed as part of CR 7005424. --- a/test/java/util/concurrent/Executors/AutoShutdown.java Tue Dec 28 15:53:50 2010 -0800 +++ b/test/java/util/concurrent/Executors/AutoShutdown.java Wed Jan 12 14:40:36 2011 +0000 @@ -24,6 +24,7 @@ /* * @test * @bug 6399443 + * @run main/othervm AutoShutdown * @summary Check for auto-shutdown and gc of singleThreadExecutors * @author Martin Buchholz */
12-01-2011

EVALUATION Yes, this test should be run in othervm mode.
12-01-2011