Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4987560

demo/jfc/Font2DTest - throws ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • 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)


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: