[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] Integrated: 6206189: Graphics2D.clip specifies incorrectly that a 'null' is a valid
From:       Prasanta Sadhukhan <psadhukhan () openjdk ! java ! net>
Date:       2021-02-22 4:50:42
Message-ID: A2uEdmQBJtZoa-ROzt5h3a8wATG3aGFyprt17QNeDL8=.d896cb61-ee4f-42d9-9a8a-a7b97a627552 () github ! com
[Download RAW message or body]

On Tue, 9 Feb 2021 11:57:44 GMT, Prasanta Sadhukhan <psadhukhan@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.

This pull request has now been integrated.

Changeset: 0c21dd05
Author:    Prasanta Sadhukhan <psadhukhan@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0c21dd05
Stats:     69 lines in 3 files changed: 63 ins; 0 del; 6 mod

6206189: Graphics2D.clip specifies incorrectly that a 'null' is a valid value for \
this method

Reviewed-by: aivanov, kizune, azvegint

-------------

PR: https://git.openjdk.java.net/jdk/pull/2476


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic