United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-2195720 Drag & Drop from Motif to Java does not work.
JDK-2195720 : Drag & Drop from Motif to Java does not work.

Details
Type:
Backport
Submit Date:
2010-07-15
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2010-09-01
Component:
client-libs
OS:
Sub-Component:
java.awt
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
Fixed Versions:
6u21-rev (b10)

Related Reports
Backport:

Sub Tasks

Description
                                    

Comments
EVALUATION

when MotifDnDConstants.Swapper.getInt() is called from sun.awt.X11.MotifDnDDropTargetProtocol.getData() to read a timestamp, a value (32-bit unsigned int) is initially assigned to 32-bit signed int var. Hence, values that exceed (2^31)-1 are interpreted as negative.
                                     
2010-07-21
SUGGESTED FIX

./src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java

old:  long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder);
fix:  long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder) & 0xffffffffL;

--
./src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java

old:  long time = t;
fix:  long time = t & 0xffffffffL;
                                     
2010-07-28
SUGGESTED FIX

http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=3651
                                     
2010-07-29
SUGGESTED FIX

we correct an outcome of Java's "signed-based world-view" during the implicit type conversion after the casting.
                                     
2010-07-29



Hardware and Software, Engineered to Work Together