[OpenJDK 2D-Dev] RFR: 8254024: Enhance native libs for AWT and Swing to work with GraalVM Native Image
Andrii Rodionov
github.com+1538227+arodionov at openjdk.java.net
Thu Oct 15 17:00:15 UTC 2020
On Thu, 15 Oct 2020 16:40:12 GMT, Sergey Bylokhov <serb at 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
More information about the 2d-dev
mailing list