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

unclear spec for java.awt.datatransfer.DatFlavor(String mimeType)

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.5
    • Verified



      Name: sdC67446 Date: 08/04/98


      The spec for java.awt.datatransfer.DataFlavor(String mimeType)
      says nothing about ctor's behavior when 'mimeType' doesn't
      specify a "class=" parameter.
      Currently constructor throws IllegalArgumentException.

      The doc says:
      -------------------------------------------------------------
      public DataFlavor(String mimeType)
                 throws MimeTypeParseException,
                        ClassNotFoundException

            construct a DataFlavor from a Mime Type string.
            The string must specify a "class=" parameter
            in order to succeed in constructing a DataFlavor.
      ------------------------------------------------------------
      ======================================================================

            dgreensunw Dale Green (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: