Regression: no representation class specified for DataFlavor.javaJVMLocalObjectM

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.2.1
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: