JDK-8134003 : [macosx] The highlighted text jumps a few columns automatically after clicking the set button.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-08-19
  • Updated: 2015-09-02
  • Resolved: 2015-09-02
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
9Resolved
Related Reports
Duplicate :  
Description
Testsuite name: JCK manual 
Test name: api/javax_swing/interactive/JTextPaneTests.html#JTextPane
Product tested: JDK 9 b77 64bit
OS/architecture: Mac10.10-x64 (Processor:2.4 GHz Intel Core 2 Duo;Memory:4 GB 1067 MHz DDR3)


Reproducible: Always
Reproducible on machine: Evergreen-machine
[If Sometimes] Also reproducible on machine:

Is it a Regression: Yes 
[If Regression] Regression introduced in release/build:JDK9b76(64bit) Failed,but JDK9b75(64bit) on same platform Passed.
Test result on the last GAed release for this train:
[if Fail] Test result on FCS: 

Is it a platform specific issue:
Is it a new (previously unsupported) OS/browser/mode testing:
[If new configuration testing] Issue specific to execution mode or OS/browser version:


Descriptions:
This test verifies the behavior of JTextPane setCharacterAttributes.Below find a checkbox and two buttons. Please verify that initially text typed in the textpane is bold. Also verify that when you highlight that text and click the Set button the highlighted text is underlined and bolded. Next check the checkbox and click the Set button and verify the text is underlined and NOT bolded.It may be necessary to highlight the text again after interacting with other components in the test frame. 

Actual behavior:
1.Highlight the text and click the Set button the highlighted text is underlined and bolded ,but the highlighted text jumps a few columns automatically.refer to JTextPane.jpg and right picture refer to JtextPane-right.jpg.
2.There is the same issue without the options "-client -Xcomp -Xbatch".

Comments
Issue reproducible in jdk9b76 64bit on Mac OS 10.9 too, but works in jdk9b75 64bit
20-08-2015

please check with the Mac 10.9 and confirm whether it is OS specific or not.
20-08-2015

RULE api/javax_swing/interactive/JTextPaneTests_JTextPane any any
19-08-2015