-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0
-
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.
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.
- duplicates
-
JDK-4259481 DataFlavor.selectBestTextFlavor behavior is not defined
- Closed
-
JDK-4331583 DataFlavor.selectBestTextFlavor(DataFlavor a[]) always returns the first array e
- Closed
- relates to
-
JDK-4370469 REGRESSION: NPE in selectBestTextFlavor() on win32
- Resolved
-
JDK-4313838 Win&Sol Japanese:DnD from native app doesn't work with selectBestTextFlavor
- Closed