United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4885018 : java.awt.datatransfer.SystemFlavorMap.getFlavorsForNative: need clarification

Details
Type:
Bug
Submit Date:
2003-06-27
Status:
Resolved
Updated Date:
2004-06-09
Project Name:
JDK
Resolved Date:
2003-11-26
Component:
docs
OS:
solaris_2.6,linux,generic
Sub-Component:
guides
CPU:
x86,sparc,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b30)

Related Reports

Sub Tasks

Description

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

======================================================================

                                    

Comments
PUBLIC COMMENTS

.
                                     
2004-07-08
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b30
tiger-beta


                                     
2004-07-08
EVALUATION



Name: dk30142			Date: 07/19/2003

Accepted
======================================================================

The solutions proposed in the bug report won't work.  I discussed this with Danila who discussed it with others in engineering.  Fix was CCC approved.  Fixed for tiger.
###@###.### 2003-11-07
                                     
2003-11-07



Hardware and Software, Engineered to Work Together