Name: sdR10048 Date: 06/27/2003
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b09"
JCK : 1.5
Platform[s] : Solaris
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] :
api/java_awt/datatransfer/SystemFlavorMap/index.html#GetF4N[SystemFlavorMap0018]
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
public List getFlavorsForNative(String?nat)
Returns a List of DataFlavors to which the specified String native can be
translated by the data transfer subsystem. The List will be sorted from
best DataFlavor to worst. That is, the first DataFlavor will best reflect
data in the specified native to a Java application.
If the specified native is previously unknown to the data transfer subsystem,
and that native has been properly encoded, then invoking this method will
establish a mapping in both directions between the specified native and a
DataFlavor whose MIME type is a decoded version of the native.
Specified by:
getFlavorsForNative in interface FlavorTable
Parameters:
nat - the native whose corresponding DataFlavors should be returned.
If null is specified, all DataFlavors currently known to the data
transfer subsystem are returned in a non-deterministic order.
Returns:
a java.util.List of DataFlavor objects into which platform-specific
data in the specified, platform-specific native can be translated
...
---------- end-of-excerpt ---------------
Problem description
===================
Current javadoc says nothing about the expected behavior if
we pass not properly encoded (and previously unknown of course) native.
Possible ways to act here are:
1 return null
2 return an empty array
3 return all registered flavors
======================================================================