Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4475489
Votes 1
Synopsis Clipboard.getContents() documentation should mention IllegalStateException
Category java:dragndrop
Reported Against 1.3.1
Release Fixed 1.4(merlin-rc1)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 27-JUN-2001
Description




java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

Clipboard.getContents() may throw an IllegalStateException (as described in bug
4464162, "java.lang.IllegalStateException: cannot open system clipboard"). The
documentation for getContents() should mention this fact. Otherwise, developers
may not find out about it, until a customer trips over it.
(Review ID: 127037) 
======================================================================
Work Around
N/A
Evaluation



On Win32 platforms the system clipboard can be accessed only by one application at the time.  While another application is accessing the system clipboard, Clipboard.setContents() and Clipboard.getContents() fail.  To signal the failure these two methods throw IllegalStateException.  This exception is not documented.  The suggested change is to document this exception in the specification for setContents() and getContents().  Otherwise, Java developers may not find out about it, until a customer trips over it.
  xxxxx@xxxxx  
======================================================================
Comments
  
  Include a link with my name & email   

Submitted On 16-OCT-2001
jrutter
Also see bug 4511991 for other changes to table handling in 
JDK V1.3.1



PLEASE NOTE: JDK6 is formerly known as Project Mustang