demo/jfc/Font2DTest - throws ClassCastException

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 5.0
    • Component/s: client-libs
    • 2d
    • x86
    • linux



      Name: aaR10208 Date: 02/03/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : jdk1.5.0-beta-b32c
      Platform[s] : RH Linux 9


      How to reproduce:
      =================
      1. Start Font2DTest
      2. Choose "File" -> "Save as jpeg"
      You'll see the following exception:

      java.lang.ClassCastException: sun.awt.image.DataBufferNative
               at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:405)
               at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
               at FontPanel$FontCanvas.writeJPEG(FontPanel.java:1078)
               at FontPanel.doSaveJPEG(FontPanel.java:391)
               at Font2DTest.actionPerformed(Font2DTest.java:779)


      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Sundr Sundr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: