Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254024

Enhance native libs for AWT and Swing to work with GraalVM Native Image

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Starting from version 11.0.9, all JDK libraries also build as static libraries.
      This leads to an issue with static libs: One static libarary is trying to load another static library using dlopen and then uses dlsym to find symbols. With static libraries this is not possible.

      This happens in libawt loading awt-xawt or awt_headless:

        https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c#L175

      and in mlib_image:

        https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_Mlib.c#L75

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vjovanovic Vojin Jovanovic
                Reporter:
                vjovanovic Vojin Jovanovic
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: