On Thu, 15 Oct 2020 16:40:12 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> Does it mean that in the case of static-libs both variants of AWT 
> libraries(xawt and headless) will be loaded?

No, they shouldn't. If this happens it causes duplicate symbol error during 
linkage phase.
For GraalVM native image we select what library should be linked based on 
`-Djava.awt.headless` property.

>  How it is possible to test the current changes?

For GraalVM native image, we run JCK tests `api/java_awt` and 
`api/javax_swing`. Those tests built as a native image.

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

PR: https://git.openjdk.java.net/jdk/pull/562

Reply via email to