RFR: 6201035: Undefined behavior of MatteBorder Ctors [v2]
Tejesh R
tr at openjdk.org
Wed Oct 26 10:29:21 UTC 2022
On Wed, 26 Oct 2022 04:24:39 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 comment fix
src/java.desktop/share/classes/javax/swing/border/MatteBorder.java line 172:
> 170: * Reinitialize the insets parameter with this Border's current Insets.
> 171: * @param c the component for which this border insets value applies
> 172: * @param insets the object to be
_reinitialized_ is removed. Is it a typo?
-------------
PR: https://git.openjdk.org/jdk/pull/10740
More information about the client-libs-dev
mailing list