JDK-8016534 : javax/swing/text/View/8014863/bug8014863.java failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u40,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-06-13
  • Updated: 2014-03-11
  • Resolved: 2013-06-28
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 JDK 8
7u60Fixed 8 b98Fixed
Related Reports
Relates :  
Description
new test javax/swing/text/View/8014863/bug8014863.java failed  since it was added into WS
reproduced on oracle linux 6.2 and windows 7 64 bit
tried with jdk7u21b14 - failed to compile

failure log:
----------System.out:(0/0)----------
----------System.err:(13/817)----------
java.lang.RuntimeException: The number of texts lines does not meet the expectation
	at bug8014863.main(bug8014863.java:61)
	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)


Comments
javax/swing/text/View/8014863/bug8014863.java PASSED under JDK 8 b132 on MacOS, Linux, Solaris, Windows. Closed issue as Fixed/Verified.
11-03-2014

An actual font size depends on OS and might be different on various OSs. This causes the test to fail on some OS. Suggested fix: The test has to calculate and set the width of the frame during execution. The calculation should be based on font metrics for the current OS.
20-06-2013