-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2
-
b123
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2166586 | 6u12 | Ragini Prasad | P3 | Resolved | Fixed | b01 |
JDK-2169116 | 5.0u17 | Abhijit Saha | P3 | Closed | Fixed | b04 |
JDK-2166042 | 5.0u16-rev | Ragini Prasad | P2 | Resolved | Fixed | b11 |
A DESCRIPTION OF THE PROBLEM :
The output displayed in Arabic Locale for the string : "\u202d\ufef2\ufe91\ufeae\ufecc\ufedf\ufe8e\ufe91" is different in JDK1.3 and higher JDK's i.e. JDK1.4 and JDK1.5. Though the output for the text:
"\ufef2\ufe91\ufeae\ufecc\ufedf\ufe8e\ufe91" is same across all JDK's but inserting the Left Right Override character (\u202D) introduces this difference.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the test case in JDK1.3
2. See the output in the two text fields.
3. In JDK1.3 both the text fields have same output.
4. In JDK1.4 the output in the two text fields differ, i.e. shape of the character differs. In left text field we are inserting LRO character while in the right text field we are inserting the same text but for this LRO character.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The results in JDK1.4 and JDK1.5 should be similar to JDK1.3, i.e. the insertion of LRO character shouldn't alter the shape. It should only prevent flipping of the text.
ACTUAL -
I have seen that inserting LRO character changes the shape of the character in JDK1.4 and JDK1.5.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.ComponentOrientation;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class SwingTest2 extends JFrame
{
public void init()
{
JPanel pane = new JPanel();
_inputText1 = new JTextField("\u202d\ufef2\ufe91\ufeae\ufecc\ufedf\ufe8e\ufe91",12);
_inputText1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
pane.add(_inputText1);
_inputText1 = new JTextField("\ufef2\ufe91\ufeae\ufecc\ufedf\ufe8e\ufe91",12);
_inputText1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
pane.add(_inputText1);
setContentPane(pane);
setVisible(true);
}
public static void main(String str[])
{
new SwingTest2().init();
}
private JTextField _inputText1;
}
---------- END SOURCE ----------
- backported by
-
JDK-2166042 Layout should not apply shaping to precomposed arabic presentation form glyphs.
-
- Resolved
-
-
JDK-2166586 Layout should not apply shaping to precomposed arabic presentation form glyphs.
-
- Resolved
-
-
JDK-2169116 Layout should not apply shaping to precomposed arabic presentation form glyphs.
-
- Closed
-
- relates to
-
JDK-2199867 PIT : java/awt/font/TextLayout/LigatureCaretTest.java fails in 6u10 b31 pit build
-
- Closed
-
-
JDK-6743629 PIT : java/awt/font/TextLayout/LigatureCaretTest.java fails in 6u10 b31 pit build
-
- Closed
-
-
JDK-6689969 String is wrongly getting flipped even when using lro character in jdk 1.6
-
- Closed
-
-
JDK-6886358 layout code update
-
- Closed
-