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

jlink should warn user about if optional dependence is not resolved

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      According to JLS 7.7.1:
      "The requires keyword may be followed by the modifier static. This specifies that the dependence, while mandatory at compile time, is optional at run time."

      Jlink does not include such optional dependencies, unless explicitly listed - which is correct.

      However user is not even informed about optional dependencies, which might be important for generated platform functionality.
       
      Specific example is relation between jdk.compiler and jdk.zipfs modules.
      Actually these modules have undeclared optional dependency, with several negative side-effects.
      Declaring the dependency as optional: (jdk.compiler requires static jdk.zipfs) makes no difference for user as there is no information provided by jlink about potential importance of lining also jdk.zipfs module.

      Proposed enhancement to jlink would warn users about all optional dependencies not included in the target platform.

          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-8287559

          jlink should warn user about if optional dependence is not resolved

            • Icon: Enhancement Enhancement
            • Resolution: Unresolved
            • Icon: P4 P4
            • None
            • None
            • tools
            • None

              According to JLS 7.7.1:
              "The requires keyword may be followed by the modifier static. This specifies that the dependence, while mandatory at compile time, is optional at run time."

              Jlink does not include such optional dependencies, unless explicitly listed - which is correct.

              However user is not even informed about optional dependencies, which might be important for generated platform functionality.
               
              Specific example is relation between jdk.compiler and jdk.zipfs modules.
              Actually these modules have undeclared optional dependency, with several negative side-effects.
              Declaring the dependency as optional: (jdk.compiler requires static jdk.zipfs) makes no difference for user as there is no information provided by jlink about potential importance of lining also jdk.zipfs module.

              Proposed enhancement to jlink would warn users about all optional dependencies not included in the target platform.

                    Unassigned Unassigned
                    asotona Adam Sotona
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                      Created:
                      Updated:

                        Unassigned Unassigned
                        asotona Adam Sotona
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        2 Start watching this issue

                          Created:
                          Updated: