JDK-4217622 : Regression: no representation class specified for DataFlavor.javaJVMLocalObjectM
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: generic
  • Submitted: 1999-03-05
  • Updated: 1999-04-03
  • Resolved: 1999-04-03
Related Reports
Duplicate :  
Description
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.


Comments
WORK AROUND The workaround is to use javaSerializedObject.
11-06-2004