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

demo/jfc/Font2DTest - throws ClassCastException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description



      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)


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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: