JDK-4170283 : Segmentaiton Violation trying to drop text from cmdtool got from other cmdtool
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: generic
  • Submitted: 1998-08-31
  • Updated: 2000-12-14
  • Resolved: 2000-12-14
Related Reports
Duplicate :  
Description
 This is little strange. When i ran any DnD application which takes text as Data Flavour , works 
well if we drag some text from native (solaris )  command tool . I got another 
command tool from the command tool from where i invoked the app. If i drag text from 
this command tool  and Drop on Drop Target even if that doesn't show drop over 
effect, the second time we can see segmentation violation. This behaviour we can 
see with TextText ( under 
/home/rameshm/swingtest/Drag-n-Drop/SmallTests/TestText )  .This won't happen if 
i drag from any command tool i got from the main tool bar.
 I got the same effect when i did rlogin from Solaris 2.5.1 machine to Solaris 2.6 machine and running locally on Solaris 2.6 machine.

 I am attachine TestText.java to show this probelm
 
I am attaching "core" which is the core generated with the problem.
I am also attaching "check" which contains the stack trace generated by this.

-Ramesh

Comments
WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004

EVALUATION I don't see a crash in 1.2.2. In 1.3, all of the drops are rejected because we changed the semantics of DataFlavor.equals. I will keep this bug open for now so that we can verify that this crash is gone once we implement the new text transfer support. david.mendenhall@eng 2000-08-02 The test case was assuming that Transferable.getContents would return an InputStream. Once I rewrote that portion of the test to use a Reader returned by DataFlavor.getReaderFromText, the new text transfer support worked beautifully. Closing bug. david.mendenhall@east 2000-12-14
14-12-2000