<Swing Dev> RFR JDK-8241291: JCK test javax_swing/text/DefaultStyledDocument/ElementSpec/ESpecCtor.html fails

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Thu Mar 19 17:41:14 UTC 2020


Hi All,

Please review a fix for a jck issue where the test 
javax_swing/text/DefaultStyledDocument/ElementSpec/ESpecCtor.html is 
seen to fail after JDK-8241078 fix.

Issue was because the JCK test expects ElementSpec.getArray() to return 
the same text as sent to ElementSpec constructor and the above fix uses 
"offset" to copy the text instead of the full text.

Fix is to copy the full text into ElementSpec.data and store the correct 
offset.

It fixes the JCK issue and also 8241078 regression testcase. All JCK 
javax_swing/text/DefaultStyledDocument/ testcases pass after this fix.

Bug: https://bugs.openjdk.java.net/browse/JDK-8241291

webrev: http://cr.openjdk.java.net/~psadhukhan/8241291/webrev.0/

Regards
Prasanta


More information about the swing-dev mailing list