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

DataFlavor.isMimeTypeSerializedObject() works wrong

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      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
      --------------------------------------------------
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              prssunw Prs Prs (Inactive)
              Reporter:
              sdmitriesunw Sergei Dmitriev (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: