Bug 65406 - [consistency] Clipboard inconsistencies across platforms
Summary: [consistency] Clipboard inconsistencies across platforms
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords: consistency
: 45771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-02 13:53 EDT by Veronika Irvine CLA
Modified: 2004-11-26 17:04 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Veronika Irvine CLA 2004-06-02 13:53:29 EDT
I20040529

Set TextTransfer or RTFTransfer in clipboard with data as null:
win:   NULL
gtk:   NULL
mac:   SWTError - Cannot set data in clipboard.  Clipboard.setContents 
motif: SWTError - Cannot set data in clipboard.  Clipboard.setContents

Set TextTransfer or RTFTransfer in clipboard with data as ""
win:   NULL
gtk:   NULL
mac:   SWTError - Cannot set data in clipboard.  Clipboard.setContents
motif: SWTError - Cannot set data in clipboard.  Clipboard.setContents

Set FileTransfer on clipboard with data as null:
win:   NULL and context menu stops working
gtk:   NULL
mac:   SWTError - Cannot set data in clipboard.  Clipboard.setContents
motif: SWTError - Cannot set data in clipboard.  Clipboard.setContents

Set FileTransfer on clipboard with data as {null, null}:
win:  "null\nnull" and context menu stops working
gtk:  NULL
mac:  NPE - FileTransfer -> File init	
motif: "null\nnull"

Set FileTransfer on clipboard with data as new String[0]:
win:   ""
gtk:  NULL
mac: SWTError - Cannot set data in clipboard.  Clipboard.setContents
motif: SWTError - Cannot set data in clipboard.  Clipboard.setContents

BadTransfer with getTypeNamesreturns null:
win:  "abc"
gtk:  NPE in Clipboard.setContents
mac:  "abc"
motif: NPE in Clipboard.setContents

BadTransfer with getTypeNames throws an exception:
win:  "abc"
gtk:  SWTException - Clipboard.setContents
mac:  "abc"
motif: SWTException - Clipboard.setContents

BadTransfer with javaToNative throws an exception:
win:  SWTException in OLE callback (OleFlushClipboard)
all others: SWTException - Clipboard.setContents
Comment 1 Steve Northover CLA 2004-06-04 09:04:17 EDT
Post 3.0.
Comment 2 Veronika Irvine CLA 2004-06-15 12:19:26 EDT
*** Bug 45771 has been marked as a duplicate of this bug. ***
Comment 3 Veronika Irvine CLA 2004-11-26 17:04:02 EST
Fixed by adding validate method.