JDK-8079253 : Test javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java fails.Part of this bug is related to frame size bug JDK-8073710.Test case can be fully tested once frame size issue is resolved
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_ubuntu,solaris
  • CPU: generic
  • Submitted: 2015-05-04
  • Updated: 2021-05-16
  • Resolved: 2015-11-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.
8u311Fixed 9 b96Fixed
Related Reports
Relates :  
Testsuite name: Regression
Test name(s): javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java
Product(s) tested: JDK 9b60(64-bit and 32-bit)
OS/architecture: Linux/amd64
Error log file (if present): see comments
Reproducible: Always
Reproducible on machine: stt-133.ru.oracle.com, spb23313.ru.oracle.com, spb23350.ru.oracle.com(Solaris)
Is it a Regression: No
Regression introduced in release/build: N/A
Is it a platform specific issue: No(fails on Solaris and Ubuntu )
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
[If new configuration testing] Issue specific to execution mode or OS/browser version: No

Exception/Error from Log:
java.lang.RuntimeException: Wrong color
	at TestBadBreak.main(TestBadBreak.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong color
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong color

JFrame window size is not consistent on Ubuntu every time different size is coming as a result images of different size are getting created. https://bugs.openjdk.java.net/browse/JDK-8073710