United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7110590 DnDMerlinQLTestsuite_DnDJTextArea test fails with an java.awt.dnd.InvalidDnDOperationException
JDK-7110590 : DnDMerlinQLTestsuite_DnDJTextArea test fails with an java.awt.dnd.InvalidDnDOperationException

Details
Type:
Bug
Submit Date:
2011-11-10
Status:
Closed
Updated Date:
2012-12-26
Project Name:
JDK
Resolved Date:
2012-01-25
Component:
client-libs
OS:
linux,generic,windows_7
Sub-Component:
java.awt
CPU:
x86,arm,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_35,5.0u33,6u30,7,7u2,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
More info may be found in CR7068047

DnDMerlinQLTestsuite_DnDJTextArea test fails with an java.awt.dnd.InvalidDnDOperationException: java.awt.AWTKeyStroke cannot be cast to javax.swing.KeyStroke
see more in comments..
Background:

 7019773 AWTKeyStroke.ctor is a mutable static - CPU11_03 
 http://monaco.sfbay.sun.com/detail.jsf?cr=7019773 
 - Denis / Vikram - CLSD - Fixed in 5.0u32 b01
 
 7068047 DnDMerlinQLTestsuite_DnDJTextArea test fails with an 
         java.awt.dnd.InvalidDnDOperationException
 http://monaco.sfbay.sun.com/detail.jsf?cr=7068047/5.0u32
 - Marked: regression
 - Vikram - CLSD - Fixed in 5.0u32 b02

 7080289 AWTKeystroke class registers a subclass factory during deserialization
 http://monaco.sfbay.sun.com/detail.jsf?cr=7080289 
 - 5.0u32-defer-request, 5.0u33-yes-b09 (Missing: regression keyword IMHO)
 - Denis / Vlad - FDE 5.0 u33 b09
 
 7110590 DnDMerlinQLTestsuite_DnDJTextArea test fails with an 
         java.awt.dnd.InvalidDnDOperationException
 http://monaco.sfbay.sun.com/detail.jsf?cr=7110590
 - Failed with 5.0u33 b09, passed with 5.0u33 b08
   
 http://monaco.sfbay.sun.com/list.jsf?product=java&CRrelease=5.0u33&integrated=b08
 http://monaco.sfbay.sun.com/list.jsf?product=java&CRrelease=5.0u33&integrated=b09
  - It seems 7080289 went in at b09
  
  ---

I've ask Vlad to revisit and resolve.

                                    

Comments
EVALUATION

I can reproduce the problem with jdk 5u33 build 9. I see the next error report for the drop target.

Message log from target JVM
[TARGET] dragEnter java.awt.dnd.DropTargetDragEvent[source=java.awt.dnd.DropTarget@358b3364]
[TARGET]  * MIMEType[0] = application/x-java-serialized-object; class=java.io.Serializable
[TARGET] dragEnter : Accept the drag!!
[TARGET] dragOver java.awt.dnd.DropTargetDragEvent[source=java.awt.dnd.DropTarget@358b3364]
[TARGET] drop java.awt.dnd.DropTargetDropEvent[source=java.awt.dnd.DropTarget@358b3364]
[TARGET] drop : isLocalTransfer false
[TARGET] Handling drop
[TARGET]  * MIMEType[0] = application/x-java-serialized-object; class=java.io.Serializable
[TARGET] handleDrop :
  MIME  - application/x-java-serialized-object; class=java.io.Serializable
  Class - java.io.InputStream
  Name  - application/x-java-serialized-object

[TARGET] drop :
 DataFlavor.javaSerializedObjectMimeType  supported ? true
[TARGET] ERROR: drop - Exception
 java.awt.dnd.InvalidDnDOperationException: java.awt.AWTKeyStroke

Currently I do not see connection with 7019773 family fixes.

I need a little more time to investigate this.
                                     
2011-11-15
SUGGESTED FIX

http://cr.openjdk.java.net/~denis/7110590/webrev.00/
                                     
2011-11-17
Verified on jdk8fcs b66 (used host judo.ru.oracle.com, linux x64 jdk).
                                     
2012-12-26



Hardware and Software, Engineered to Work Together