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

Regression: no representation class specified for DataFlavor.javaJVMLocalObjectM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.1
    • client-libs
    • generic
    • solaris_2.6

      Using DataFlavor.javaJVMLocalObjectMimeType to drag-n-drop a java object throws java.lang.IllegalArgumentException: no representation class specified for:application/x-java-jvm-local-object
       at java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java, Compiled Code)
       at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java, Compiled Code)

      The workaround is to use javaSerializedObject.

      The data flavor worked in JDK1.2 - this is a regression from a bug fix introduced in Cricket.

      To reproduce the problem:
      > cd /home/tinasu/ws/Drag-n-Drop/DnDTestSuite/classes
      > java dnd.test.TestJButtonJPanel
      > then dnd the button with LocaJavaObject data flavor.

            Unassigned Unassigned
            tsusunw Tina Su (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: