JDK-8203904 : javax/swing/JSplitPane/4816114/bug4816114.java: The divider location is wrong
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9,10,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-05-22
  • Updated: 2019-11-29
  • Resolved: 2018-08-01
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 12
11.0.7-oracleFixed 12 b14Fixed
Description
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows [Version 10.0.16299.431]

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)


A DESCRIPTION OF THE PROBLEM :
The test javax/swing/JSplitPane/4816114/bug4816114.java fails with the message:
"Execution failed: `main' threw exception: java.lang.Error: The divider location is wrong."
The issue was observed on Windows 10, It has never been observed on Windows 7
The reproducibility 100%

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jtreg -ignore:quiet -v -a -xml -testjdk:/cygdrive/c/Program\ Files/Java/jdk-10.0.1 -Djava.awt.headless=false -timeoutFactor:2 -k:'!dtrace' test/javax/swing/JSplitPane/4816114/bug4816114.java

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Test passes
ACTUAL -
----------messages:(4/124)----------
command: main bug4816114
reason: User specified action: run main bug4816114 
Mode: othervm
elapsed time (seconds): 5.44
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(13/806)----------
java.lang.Error: The divider location is wrong.
	at bug4816114.main(bug4816114.java:82)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)

JavaTest Message: Test threw exception: java.lang.Error: The divider location is wrong.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: The divider location is wrong.


---------- BEGIN SOURCE ----------
http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/javax/swing/JSplitPane/4816114/bug4816114.java
---------- END SOURCE ----------

FREQUENCY : always



Comments
Fix request (11u) I would like to downport this for parity with 11.0.7-oracle. Applies clean.
28-11-2019

The issue seen in 8GA and 10GA too. Seems to be a testcase issue where it is checking the result with hardcoded value 151 and in windows10, the value might be different due to resolution.
04-06-2018

does it affect 8? 10 GA? is it a regression introduced in 11/10.0.1?
01-06-2018

When checked independently for JDk 10.0.1 and 11, the test failed constantly. Results: ====================================== JDk 10.0.1: $ jtreg -v -testjdk:/cygdrive/c/Program\ Files/Java/jdk-10.0.1 -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 -k:'!dtrace' /cygdrive/d/jdk10-dev/test/jdk/javax/swing/JSplitPane/4816114/bug4816114.java runner starting test: javax/swing/JSplitPane/4816114/bug4816114.java runner finished test: javax/swing/JSplitPane/4816114/bug4816114.java Failed. Execution failed: `main' threw exception: java.lang.NullPointerException: HDC for component Test results: failed: 1 JDk 11 ea b15: $ jtreg -v -testjdk:/cygdrive/c/Program\ Files/Java/jdk-11 -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 /cygdrive/d/source/11dev/test/jdk/javax/swing/JSplitPane/4816114/bug4816114.java runner starting test: javax/swing/JSplitPane/4816114/bug4816114.java runner finished test: javax/swing/JSplitPane/4816114/bug4816114.java Failed. Execution failed: `main' threw exception: java.lang.Error: The divider location is wrong. Test results: failed: 1 =================================
29-05-2018