JDK-8059739 : Dragged and Dropped data is corrupted for two data types
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-10-05
  • Updated: 2015-06-04
  • Resolved: 2014-11-14
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.
JDK 8 JDK 9
8u40Fixed 9 b42Fixed
Description
When using the Swing Drag and Drop API the dropped data is corrupted for the 
following data types:
* mimetype=text/plain;representationclass=java.io.InputStream;charset=unicode
* mimetype=text/html;representationclass=java.io.InputStream;charset=unicode  


Comments
BasicTransferable should create InputStream for text with respect to 'charset' MIME parameter. Review: http://cr.openjdk.java.net/~anashaty/8059739/9/webrev.00/
14-11-2014