-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0
-
x86, sparc
-
solaris_2.5.1, windows_nt
rekha.rangarajan@eng 1998-04-21
Platforms - Solaris 5.5.1 8-bit, WinNT TrueColor
JDK - thanh:04.18.98-05:38
Test - /net/capra/.../2D/.../current/solaris/demo/jfc/Java2D
The following exception is thrown for the Fonts/AllFonts test and Mix/BezierAnim test in Java2D on Solaris. Fonts/AllFonts test is ok on WinNT.
Steps to reproduce
1. Run Java2D - java Java2Demo
2. Click on Fonts Tab - notice that AllFonts does not draw and throws exception on solaris - its ok on WinNT
3. Similarly, click on Mix tab - notice that BezierAnim throw exception on both solaris and winnt
java.lang.IllegalArgumentException: Zero length string passed to TextLayout constructor.
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.IllegalArgumentException.<init>(Compiled Code)
at java.awt.font.TextLayout.<init>(Compiled Code)
at demos.Fonts.AllFonts.<init>(Compiled Code)
at java.lang.Class.newInstance(Native Method)
at CanvasPanel.<init>(Compiled Code)
at TheLayout.canvasSetup(Compiled Code)
at TheLayout.<init>(Compiled Code)
at Java2Demo.stateChanged(Compiled Code)
at java.awt.swing.JTabbedPane.fireStateChanged(Compiled Code)
at java.awt.swing.JTabbedPane$ModelListener.stateChanged(Compiled Code)
at java.awt.swing.DefaultSingleSelectionModel.fireStateChanged(Compiled Code)
at java.awt.swing.DefaultSingleSelectionModel.setSelectedIndex(Compiled Code)
at java.awt.swing.JTabbedPane.setSelectedIndex(Compiled Code)
at java.awt.swing.plaf.basic.BasicTabbedPaneUI$MouseGetter.mousePressed(Compiled Code)
at java.awt.Component.processMouseEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.Container.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
java.lang.IllegalArgumentException: Zero length string passed to TextLayout constructor.
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.IllegalArgumentException.<init>(Compiled Code)
at java.awt.font.TextLayout.<init>(Compiled Code)
at demos.Mix.BezierAnim.getLine(Compiled Code)
at demos.Mix.BezierAnim.drawDemo(Compiled Code)
at J2DCanvas.paint(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
rekha.rangarajan@eng 1998-05-07
Solaris 2.5.1 8-bit (test machine: orange)
JDK: "thanh:05.05.98-16:43"
Test - .../solaris/demo/jfc/Java2D
The following exception is still thrown for the Fonts/AllFonts test and Mix/BezierAnim test in Java2D on Solaris.
AllFonts is blank
java.lang.ArrayIndexOutOfBoundsException: 0
at java.awt.font.TextLayout.sameBaselineUpTo(TextLayout.java:3446)
at java.awt.font.TextLayout.<init>(TextLayout.java:328)
at demos.Fonts.AllFonts.<init>(AllFonts.java:48)
at java.lang.Class.newInstance(Native Method)
at CanvasPanel.<init>(CanvasPanel.java:59)
at TheLayout.<init>(TheLayout.java:70)
at Java2Demo.createTabs(Java2Demo.java:221)
at Java2Demo.<init>(Java2Demo.java:119)
at Java2Demo.main(Java2Demo.java:394)
BezierAnim - text in background does not appear
java.lang.ArrayIndexOutOfBoundsException: 0
at java.awt.font.TextLayout.sameBaselineUpTo(TextLayout.java:3446)
at java.awt.font.TextLayout.<init>(TextLayout.java:328)
at demos.Mix.BezierAnim.getLine(BezierAnim.java:108)
at demos.Mix.BezierAnim.drawDemo(BezierAnim.java:139)
at J2DCanvas.paint(J2DCanvas.java:160)
at java.awt.Component.dispatchEventImpl(Component.java:2023)
at java.awt.Component.dispatchEvent(Component.java:1977)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
- duplicates
-
JDK-4138921 TextLayout handling of empty strings
- Open
- relates to
-
JDK-4873198 Setting the font size to a larger value throws a IllegalArgumentException
- Resolved