-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2.2
-
sparc
-
solaris_2.5
Name: sdC67446 Date: 09/16/98
The method isMimeTypeSerializedObject() of class
java.awt.datatransfer.DataFlavor returns false if DataFlavor describes
the serialized one.
The doc says:
--------------------------------------------------
public boolean isMimeTypeSerializedObject()
does the DataFlavor represent a serialized object?
The test demonstrating the bug:
-----------------Test.java------------------------
import java.awt.datatransfer.*;
public class Test {
public static void main(String[] args) {
DataFlavor df = null;
try {
df = new DataFlavor("application/x-java-serialized-object;class=java.io.Serializable");
} catch (Exception e) {
System.out.println(e);
}
System.out.println(df.isMimeTypeSerializedObject());
}
}
---------Output from the test---------------------
false
--------------------------------------------------
======================================================================