RFR: 6201035: Undefined behavior of MatteBorder Ctors [v4]
Alexey Ivanov
aivanov at openjdk.org
Fri Oct 28 17:54:17 UTC 2022
On Fri, 28 Oct 2022 03:42:05 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> The behavior of MatteBorder constructors taking Insets object as a parameter is undocumented. It would throw NPE if null object is passed to it, which should be documented in the spec.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Review fix
Does it make sense to update the subject to _“Document NPE for passing null insets”_ or a similar? It would carry more meaning. At this time, “underfined behavior” sounds frightening.
-------------
PR: https://git.openjdk.org/jdk/pull/10740
More information about the client-libs-dev
mailing list