JDK-8078483 : Apparent endless loop running JEditorPanePaintTest
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-23
  • Updated: 2015-06-22
  • Resolved: 2015-05-12
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 9
9 b68Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
One can observe this behavior using a current state of jdk9.client repository (last promoted build is b60, PIT is not started). 
Compile and run the attached test (2 files) "java -DresultsDir=. JEditorPanePaintTest". With b60, you'll have 2 frame captures after several seconds. With the current repo build, however, the test would run forever, not painting the text, even not finishing the layout, and taking a lot of processor. Looks like there's an endless loop somewhere. Thread dump doesn't report a deadlock.
I have similar results on Ubuntu 14.04 and Windows 8.1.
Comments
Text component root view should receive the component dimension without margins. The caret margin introduced in https://bugs.openjdk.java.net/browse/JDK-6866751 fix was not taken into account.
27-04-2015

It seems this fix https://bugs.openjdk.java.net/browse/JDK-6866751.
24-04-2015

What fix was cause a regressions?
24-04-2015

It is an infinite layout issue. JEditorPane width is increased infinitely.
24-04-2015