[OpenJDK 2D-Dev] RFR: 6206189: Graphics2D.clip specifies incorrectly that a 'null' is a valid value for this method
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Feb 15 12:48:01 UTC 2021
On Tue, 9 Feb 2021 11:57:44 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> The API doc for Graphics2D.clip(shape s) claims that passing a null argument would actually clear the existing clipping area, which 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.
> Updated spec to rectify this.
@prrace Can you please have a look at the CSR JDK-8261426?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2476
More information about the 2d-dev
mailing list