# HG changeset patch # User lana # Date 1291425168 28800 # Node ID 6a86e4fcd318553cb7bf8d9c9334141b3f653b7a # Parent bcd536d5f5ff4ba06ccfeddacb5ba12fc37d455d# Parent f807f6b93084cb2add1a26da1ec1a3ac11585c36 Merge diff -r bcd536d5f5ff -r 6a86e4fcd318 jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java --- a/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java Fri Dec 03 11:30:28 2010 -0800 +++ b/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java Fri Dec 03 17:12:48 2010 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -134,7 +134,8 @@ if (swapNeeded) { t = MotifDnDConstants.Swapper.swap(t); } - long time = t; + long time = t & 0xffffffffL; + // with correction of (32-bit unsigned to 64-bit signed) implicit conversion. /* Discard events from the previous receiver. */ if (targetEnterServerTime == XConstants.CurrentTime || diff -r bcd536d5f5ff -r 6a86e4fcd318 jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java --- a/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java Fri Dec 03 11:30:28 2010 -0800 +++ b/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java Fri Dec 03 17:12:48 2010 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -928,7 +928,9 @@ throw new IOException("Cannot get data: drag source property atom unavailable"); } - long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder); + long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder) & 0xffffffffL; + // with correction of (32-bit unsigned to 64-bit signed) implicit conversion. + XAtom selectionAtom = XAtom.get(selatom); XSelection selection = XSelection.getSelection(selectionAtom); @@ -962,7 +964,9 @@ return false; } - long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder); + long time_stamp = MotifDnDConstants.Swapper.getInt(data + 4, eventByteOrder) & 0xffffffffL; + // with correction of (32-bit unsigned to 64-bit signed) implicit conversion. + long sel_atom = MotifDnDConstants.Swapper.getInt(data + 12, eventByteOrder); long status_atom = 0;