[OpenJDK 2D-Dev] RFR: 6436374: Graphics.setColor(null) is not documented

Sergey Bylokhov serb at openjdk.java.net
Wed Feb 3 08:07:41 UTC 2021


On Wed, 3 Feb 2021 07:59:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> While CSR is under review, maybe we can add a small test?
>
> What will be the objective of the test...It's just documentation change..no code is changed...setting null will be ignored before this and after this change...

This change added a statement to the specification, which could not be tested before. So this new test will be the first one that passes a null to this method, how we will know that it is actually ignored?

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

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


More information about the 2d-dev mailing list