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

selectBestFlavor is not returning the same dataflavor every time

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • generic, linux, solaris_2.5.1
    • Verified

      DataFlavor.selectBestFlavor is not returning the same dataflavor every time when the same list of dataflavors are passed.
      When the order of DataFlavors in the list is changed the first encountered text dataflavor is returned, so the best dataflavor is not the same always, even if the same list of dataflavors are passed each time.
      (for eg: dataflavor[] dfs1 = { DataFlavor.string, DataFlavor.plaintext, enrich}
                  dataflavor[] dfs2 = { enrich,DataFlavor.string,DataFlavor.plaintext}

      selectBestTextFlavor(dfs1) returns string flavor.
      selectBestTextFlavor(dfs2) returns enrich.

            prssunw Prs Prs (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: