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

Regression: java.lang.IllegalArgumentException encountered while using StringSel

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      generic, sparc
    • OS:
      solaris_2.6, solaris_7
    • Verification:
      Verified

      Description

      On JDK1.2.2, using StringSelection for transferable string in drag-n-drop cause the java.lang.IllegalArgumentException. Here is the dump:
      java.lang.IllegalArgumentException: no representation class specified
      for:text/plain; charset=iso8859-1
              at java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java, Compiled
      Code)
              at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java, Compiled
      Code)
              at java.awt.datatransfer.SystemFlavorMap.<init>(SystemFlavorMap.java,
      Compiled Code)
              at
      java.awt.datatransfer.SystemFlavorMap.getDefaultFlavorMap(SystemFlavorMap.java,
      Compiled Code)
              at java.awt.dnd.DragSource.<clinit>(DragSource.java:83)
              at DnDTextTest.<init>(DnDTextTest.java, Compiled Code)
              at DnDTextTest.main(DnDTextTest.java, Compiled Code)

      This is a regression bug in JDK1.2.2 (works fine in JDK1.2). The test in
      /home/tinasu/ws/Drag-n-Drop/SmallTests/SwingButtons demonstrates the problem.
              

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jdunnsunw Jeffrey Dunn (Inactive)
              Reporter:
              tsusunw Tina Su (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: