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

Test test/jdk/tools/jpackage/share/JavaOptionsTest.java fails on Alpine Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • repo-portola
    • tools
    • None
    • x86
    • other

    Description

      RequiresSetenv(jvmpath) method always returns JNI_TRUE for musl libc library (see [1]) and the launcher re-executes jpackage one more time. This leads that java options in JavaVirtualMachine::launchVM() [2] method are added into vm args twice.

      [1] https://hg.openjdk.java.net/portola/portola/file/7ff60204a181/src/java.base/unix/native/libjli/java_md_solinux.c#l244
      [2] https://hg.openjdk.java.net/portola/portola/file/7ff60204a181/src/jdk.incubator.jpackage/share/native/libapplauncher/JavaVirtualMachine.cpp#l271

      Attachments

        Issue Links

          Activity

            People

              avoitylov Aleksei Voitylov
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: