RFR: 8322135: javax/swing/JTable/JTableScrollPrintTest.java & javax/swing/JTable/PrintAllPagesTest.java throws java.lang.InternalError: HTHEME is null [v2]
Tejesh R
tr at openjdk.org
Tue Apr 23 10:26:28 UTC 2024
On Tue, 23 Apr 2024 07:11:30 GMT, Tejesh R <tr at openjdk.org> wrote:
>> src/java.desktop/windows/classes/sun/awt/windows/ThemeReader.java line 117:
>>
>>> 115: if (theme == null || theme == 0) {
>>> 116: theme = openTheme(widget, defaultDPI);
>>> 117: }
>>
>> `theme` can't be `null` because `openTheme` returns `long`. Perhaps, the declaration should be changed to
>>
>> long theme;
>>
>>
>> This is still incorrect. If `i > 0`, there's a prerequisite to calling `openTheme`. Likely, you need another helper method.
>
> I didn't get the need for helper method?
Ok, I got it. And I have updated. But if we want to change `theme` to `long`, then I guess we have to do it every calling function I guess. So is it better to leave it as `Long` ?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18706#discussion_r1576018740
More information about the client-libs-dev
mailing list