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

unclear doc for StringSelection.isDataFlavorSupported

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      Name: sdC67446 Date: 01/26/2000


      The doc for
      java.awt.datatransfer.StringSelection.isDataFlavorSupported(DataFlavor flavor)
      does not specify behavior if flavor' == null.
      Currently method returns false.

      The javadoc says:
      ------------------------------------------------------------

          /**
           * Returns whether the requested flavor is supported by this Transferable.
           *
           * @param flavor the requested flavor for the data
           * @return true if flavor is equal to <code>DataFlavor.stringFlavor</code>
           * or <code>DataFlavor.plainTextFlavor</code>, false otherwise.
           */

          public boolean isDataFlavorSupported(DataFlavor flavor)

      ------------------------------------------------------------
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            sharonz Sharon Zakhour (Inactive)
            Reporter:
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: