Integrated: 8370467: BorderFactory.createBevelBorder and createSoftBevelBorder throws NPE for null highlight and shadow

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Nov 13 01:22:18 UTC 2025


On Thu, 23 Oct 2025 06:54:27 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

This pull request has now been integrated.

Changeset: bc66d3e6
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bc66d3e65d208edc69e8ae334d23b38f2b78a440
Stats:     68 lines in 2 files changed: 66 ins; 0 del; 2 mod

8370467: BorderFactory.createBevelBorder and createSoftBevelBorder throws NPE for null highlight and shadow

Reviewed-by: aivanov, tr, honkar

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

PR: https://git.openjdk.org/jdk/pull/27949


More information about the client-libs-dev mailing list