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

Merlinb46:Font2DTest:Exception occ when you open an empty file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • 2d
    • beta
    • x86
    • windows_98
    • Verified

      An ArrayIndexOutOfBoundsException occurs and the system crashes when you try to oepn an empty text file in Font2DTest demo on Win98. Sometimes the system crashes immediately after the Exception comes and sometimes it happens after you perfom a few other operations such as change Size/Style etc.

      Steps to reproduce:
      1) Create an empty text file in Notepad
      2) Run Font2DTest demo
      3) From the 'Text ot use:' drop down list choose Text file. In the Load dialog Open the empty text file you have created.
      4) An ArrayIndexOutOfBoundsException comes and the system hangs after some time.

      The following Exception comes:

      java.lang.ArrayIndexOutOfBoundsException
              at Font2DTest.readTextFile(Font2DTest.java:462)
              at Font2DTest.itemStateChanged(Font2DTest.java:786)
              at java.awt.Choice.processItemEvent(Choice.java:579)
              at java.awt.Choice.processEvent(Choice.java:551)
              at java.awt.Component.dispatchEventImpl(Component.java:3455)
              at java.awt.Component.dispatchEvent(Component.java:3322)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:14
      0)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

            

        
      kathleen.zelony@eng 2001-01-18

            chaasesunw Chet Haase (Inactive)
            kzelonysunw Kathleen Zelony (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: