-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
5.0u4
-
x86
-
solaris_10
jdk1.5.0_04 S10U1 build 10
reproduce steps:
1. start Java2D demo from terminal by java -jar Java2D.jar
2. click the tabs in random order several times
3. click Fonts tab
4. in the terminal exceptions thrown out:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.ref.SoftReference
at sun.font.Font2D.getStrike(Font2D.java:307)
at sun.font.Font2D.getStrike(Font2D.java:261)
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:59)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:75)
at sun.font.Font2D.getFontMetrics(Font2D.java:362)
at java.awt.Font.defaultLineMetrics(Font.java:1800)
at java.awt.Font.getLineMetrics(Font.java:1886)
at java.awt.font.TextLayout.fastInit(TextLayout.java:679)
at java.awt.font.TextLayout.<init>(TextLayout.java:480)
at java2d.demos.Fonts.Tree.tree(Tree.java:104)
at java2d.demos.Fonts.Tree.render(Tree.java:88)
at java2d.Surface.paint(Surface.java:359)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
This bug is reproducible only on x86 platform.
###@###.### 2005-07-07 09:46:22 GMT
reproduce steps:
1. start Java2D demo from terminal by java -jar Java2D.jar
2. click the tabs in random order several times
3. click Fonts tab
4. in the terminal exceptions thrown out:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.ref.SoftReference
at sun.font.Font2D.getStrike(Font2D.java:307)
at sun.font.Font2D.getStrike(Font2D.java:261)
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:59)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:75)
at sun.font.Font2D.getFontMetrics(Font2D.java:362)
at java.awt.Font.defaultLineMetrics(Font.java:1800)
at java.awt.Font.getLineMetrics(Font.java:1886)
at java.awt.font.TextLayout.fastInit(TextLayout.java:679)
at java.awt.font.TextLayout.<init>(TextLayout.java:480)
at java2d.demos.Fonts.Tree.tree(Tree.java:104)
at java2d.demos.Fonts.Tree.render(Tree.java:88)
at java2d.Surface.paint(Surface.java:359)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
This bug is reproducible only on x86 platform.
###@###.### 2005-07-07 09:46:22 GMT