JDK-7157342 : [macosx] Drag and Drop between JVM can not transfer non-English content correctly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-03-28
  • Updated: 2012-03-28
  • Resolved: 2012-03-28
Related Reports
Duplicate :  
Platform: Mac OS X 10.7.3
JDK: 7u4 b17

Compile attached java file, BasicDnD.java

Run BasicDnD twice in different terminal session, so that BasicDnD will be invoked from differnt JVMs. There are two Java frames with some text in the textarea within it. The two frames are not invoked from one single JVM. 

Try to drag some text in one frame to the other. IF the non-English text are draged and droped to the other JTextArea (in another JVM) for the first time, the text will become question marks or garbled characters in the drop target. Something interesting is that, if we drag and drop the non-English contents for the second time, the data transfer will work fine. This problem happens in the DnD between components of different JVMs(not single JVM), and only happens in the first DnD for non-English contents.

EVALUATION Most likely a duplicate of 7153735.