Duplicate :
|
When running the program UnicodeDisplay from the java in a nutshell examples book on solaris exceptions are generated. This doesn't happen on 1.1.5 at sun.awt.motif.CharToByteX11Dingbats.canConvert(CharToByteX11Dingbats.java:56) at sun.awt.PlatformFont.makeConvertedMultiFontChars(PlatformFont.java:454) at sun.awt.motif.X11Graphics.drawMFChars(Native Method) at sun.awt.motif.X11Graphics.drawChars(X11Graphics.java:350) at UnicodeDisplay$UnicodePanel.paint(UnicodeDisplay.java:172) at java.awt.Component.dispatchEventImpl(Component.java:1878) at java.awt.Component.dispatchEvent(Component.java:1837) at java.awt.EventQueue.dispatchEvent(EventQueue.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45) To reproduce. Compile the attached program. Run it with the java interpreter. Using the scroll bar scroll down to the Dingbats area (2700-27BF) boom