RFR: 8370467: BorderFactory.createBevelBorder and createSoftBevelBorder throws NPE for null highlight and shadow [v10]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Thu Nov 13 08:00:44 UTC 2025
On Wed, 12 Nov 2025 15:06:03 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> If we pass null as highlight and shadow color to `BorderFactory.createBevelBorder` and `createSoftBevelBorder`
>> it throws NPE which is not mentioned in the spec as the expected outcome.
>> Fixed the NPE and the spec
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> fix
I dont think I agree....We fixed NPE which is not documented in the spec so fixing an exception is a normal bugfix and spec update is not required in my opinion...If it had been documented, then spec clarification would have been needed..
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27949#issuecomment-3526194301
More information about the client-libs-dev
mailing list