JDK-8015602 : [macosx] Test javax/swing/SpringLayout/4726194/bug4726194.java fails on MacOSX
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u6,7u40,8,9,10,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2013-05-29
  • Updated: 2021-11-05
  • Resolved: 2020-10-27
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 11 JDK 16 JDK 8
11.0.13-oracleFixed 16 b22Fixed 8u311Fixed
Related Reports
Relates :  
Description
Testsuite name: Regression 
Test name: javax/swing/SpringLayout/4726194/bug4726194.java
JDK tested: 8b91 
OS tested: MacOSX 
Is it a regression: No 

Test fails against JDK 8 all builds 

LOG: 

#section:main
----------messages:(3/119)----------
command: main bug4726194
reason: Assumed action based on file name: run main bug4726194 
elapsed time (seconds): 1.082
----------System.out:(29/808)----------
		West            Width           East            HorizontalCenter
 Input:		20		10		?		?		
Output:		20		10		30		25		
 Input:		20		?		10		?		
Output:		20		-10		10		15		
 Input:		20		?		?		10		
Output:		20		-20		0		10		
 Input:		10		20		?		?		
Output:		10		20		30		20		
 Input:		?		20		10		?		
Output:		-10		20		10		0		
 Input:		?		20		?		10		
Output:		0		20		20		10		
 Input:		10		?		20		?		
Output:		10		10		20		15		
 Input:		?		10		20		?		
Output:		10		10		20		15		
 Input:		?		?		20		10		
Output:		0		20		20		10		
 Input:		10		?		?		20		
Output:		10		20		30		20		
 Input:		?		10		?		20		
Output:		15		10		25		20		
 Input:		?		?		10		20		
Output:		30		-20		10		20		

		North           Height          South           VerticalCenter  Baseline        
 Input:		20		10		?		?		?		
Output:		20		10		30		25		19		
----------System.err:(41/2626)----------
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1281)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1256)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1350)
	at bug4726194.main(bug4726194.java:45)
	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:491)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.RuntimeException: BASELINE is not in the range: [NORTH, SOUTH]!!!
	at bug4726194.test(bug4726194.java:125)
	at bug4726194$1.run(bug4726194.java:52)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:726)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:687)
	at java.awt.EventQueue$3.run(EventQueue.java:685)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:696)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:220)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:135)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:123)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed!
	at bug4726194.main(bug4726194.java:58)
	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:491)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:724)

JavaTest Message: Test threw exception: java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed!
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed!
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed!


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed!
Comments
I guess we could, but if so, probably somebody who's running graphical UI tests automatically should do it. At SAP we only run headless tests on a regular base.
05-11-2021

Should we downport JDK-8254976?
05-11-2021

Fix request (11u): Request backport for Oracle parity. Fix applies cleanly and fixes a UI test for MacOS. I verified that the test runs on my Mac. Note that the test is still disabled in OpenJDK 11u, since JDK-8254976 is not backported. No risk, no regressions, though.
03-11-2021

Changeset: dc85a3fe Author: Sergey Bylokhov <serb@openjdk.org> Date: 2020-10-27 20:23:32 +0000 URL: https://git.openjdk.java.net/jdk/commit/dc85a3fe
27-10-2020

Issue reproducible with on mac with JDK 10.0.1 b05
20-02-2018

How to Use SpringLayout: https://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html
31-03-2016

RULE javax/swing/SpringLayout/4726194/bug4726194.java Exception java.lang.RuntimeException: BASELINE is not in the range: [NORTH, SOUTH]!!! RULE javax/swing/SpringLayout/4726194/bug4726194.java Exception java.lang.RuntimeException: FAILED: SwingUtilities.invokeAndWait method failed! RULE javax/swing/SpringLayout/4726194/bug4726194.java Exception java.lang.reflect.InvocationTargetException
20-03-2015

The criteria for 3rd deferral bulk request bugs: - Not P2 - Not tck-red labeled - Not regression labeled - Not findbugs, parfait, eht, fuzzing labeled -------------------------------------------------------------------- We reviewed these today. We're OK with deferring them. I assume these are for deferral to JDK 9. Please update these so the label says 8-defer-approved and then set FixVersion to 9. Thanks! Kind regards, Mathias
27-09-2013

jdk8: SQE OK to defer
26-09-2013

8-defer-request: Not regression. The issue is reproduced in Apple JDK 6 (build 1.6.0_29-b11-397-11G63) No resources to fix it in jdk8
26-09-2013

I want to defer the issue because of lack of resources.
26-09-2013

The issue is reproduced in Apple JDK 6 (build 1.6.0_29-b11-397-11G63)
26-09-2013

It should take about a day to understand what is wrong in the SpringLayout constrains calculation.
26-09-2013

Andrei, Yuri, please consider to defer
19-09-2013

I don't understand WHY it is failed. Could you evaluate it?
19-09-2013

affected 7u40: test was renamed - see JDK-7124209 fail with jdk7u25b15 too (not a regression, JDK-7124209 fix failed?) old test name: closed/javax/swing/SpringLayout/4726194/Test4.java
02-07-2013