RFR: 8315726: Open source several AWT applet tests [v2]

Alexey Ivanov aivanov at openjdk.org
Wed Sep 13 19:19:43 UTC 2023


On Tue, 12 Sep 2023 21:33:44 GMT, Alexander Zvegintsev <azvegint at openjdk.org> 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


More information about the client-libs-dev mailing list