RFR: 8370467: BorderFactory.createBevelBorder and createSoftBevelBorder throws NPE for null highlight and shadow [v5]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Nov 4 03:13:04 UTC 2025


On Tue, 4 Nov 2025 00:45:20 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   javadoc
>
> src/java.desktop/share/classes/javax/swing/border/BevelBorder.java line 107:
> 
>> 105:     public BevelBorder(int bevelType, Color highlight, Color shadow) {
>> 106:         this(bevelType, (highlight != null) ? highlight.brighter() : null,
>> 107:              highlight, shadow, (shadow != null) ? shadow.brighter() : null);
> 
> The case where the code skips all these parameters and uses the component colors is not documented in this constructor and in the factory methods?

Updated javadoc

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27949#discussion_r2488494373


More information about the client-libs-dev mailing list