On Tue, 12 Sep 2023 21:33:44 GMT, Alexander Zvegintsev <[email protected]>
wrote:
>> test/jdk/java/awt/Choice/ChoiceSelectTest.java line 160:
>>
>>> 158: public static void main(String[] args) throws Exception {
>>> 159: EventQueue.invokeAndWait(() -> new ChoiceSelectTest().test());
>>> 160: }
>>
>> The choice is never shown on the screen, is it? Can the test be headless
>> then?
>
> No, it can't, Choice is heavyweight component:
> https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/Choice.java#L116
Right, heavyweight can't even be created in headless mode.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15671#discussion_r1324958857