RFR: 8370467: BorderFactory.createBevelBorder and createSoftBevelBorder throws NPE for null highlight and shadow
Sergey Bylokhov
serb at openjdk.org
Wed Oct 29 23:31:02 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
The constructors of BevelBorder, SoftBevelBorder, and BevelBorderUIResource still throw unspecified NPE. Is it necessary to update only the "createXX.." methods, or should we instead update the spec of the potential NPE for all of these classes/methods?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27949#issuecomment-3465022354
More information about the client-libs-dev
mailing list