United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6206189 : DOC: Graphics2D.clip specifies incorrectly that a 'null' is a valid value for this method

Details
Type:
Bug
Submit Date:
2004-12-09
Status:
Open
Updated Date:
2012-01-16
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
1.3.0
Targeted Versions:

Related Reports

Sub Tasks

Description
The API doc for Graphics2D.clip(shape s) claims that passing a null argument would actually clear the existing clipping area. This is incorrect. This statement is applicable only to G2D.setClip() and not for the clip() method. G2D.clip() would throw a NullPointerException when it encounters a null argument. 

Hence the '@param' of G2D.clip(shape s) must be changed to state that a null argument would throw a NPE. 

This has been there since 1.3.
###@###.### 2004-12-09 04:11:35 GMT

                                    

Comments



Hardware and Software, Engineered to Work Together