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

unclear doc for StringSelection.isDataFlavorSupported

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5.1



      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)

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: