JDK-4210284 : Regression: java.lang.IllegalArgumentException encountered while using StringSel
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 2.0,1.2.2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.6,solaris_7
  • CPU: generic,sparc
  • Submitted: 1999-02-10
  • Updated: 2000-10-31
  • Resolved: 2000-10-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.2 1.2.2Fixed
Related Reports
Relates :  
Description
On JDK1.2.2, using StringSelection for transferable string in drag-n-drop cause the java.lang.IllegalArgumentException. Here is the dump:
java.lang.IllegalArgumentException: no representation class specified 
for:text/plain; charset=iso8859-1
        at java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java, Compiled 
Code)
        at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java, Compiled 
Code)
        at java.awt.datatransfer.SystemFlavorMap.<init>(SystemFlavorMap.java, 
Compiled Code)
        at 
java.awt.datatransfer.SystemFlavorMap.getDefaultFlavorMap(SystemFlavorMap.java, 
Compiled Code)
        at java.awt.dnd.DragSource.<clinit>(DragSource.java:83)
        at DnDTextTest.<init>(DnDTextTest.java, Compiled Code)
        at DnDTextTest.main(DnDTextTest.java, Compiled Code)

This is a regression bug in JDK1.2.2 (works fine in JDK1.2). The test in 
/home/tinasu/ws/Drag-n-Drop/SmallTests/SwingButtons demonstrates the problem. 
        

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2.2 INTEGRATED IN: 1.2.2 VERIFIED IN: 1.2.2
14-06-2004

EVALUATION ---------------------------------------------------------------------- jeff.dunn@Eng 1999-02-11 We'll get this fixed in the "I" build. ---------------------------------------------------------------------- jeff.dunn@eng 1999-02-12 The fix for 4173707 enforced the spec, which required representation class names with DataFlavors. The default flavor map did not include them, so they were failing. I added the classes to the flavormap.properties files on win32 and solaris. ----------------------------------------------------------------------- tina.su@Eng 1999-02-24 The fix is verified on JDK1.2.2 (Circket) H build.
24-02-1999