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

Warning module name in --add-exports not found: jdk.jdeps when compiling for BUILD_JIGSAW_TOOLS

XMLWordPrintable

    • b154

        JDK-8172973 removes the warning emitted at run-time but --add-exports specified at compile-time shall be removed.

        Compiling 4 files for BUILD_JIGSAW_TOOLS
        warning: [options] module name in --add-exports option not found: jdk.jdeps

        Simple patch:

        diff --git a/make/CompileModuleTools.gmk b/make/CompileModuleTools.gmk
        --- a/make/CompileModuleTools.gmk
        +++ b/make/CompileModuleTools.gmk
        @@ -37,6 +37,5 @@
                        build/tools/jigsaw, \
            BIN := $(TOOLS_CLASSES_DIR), \
            ADD_JAVAC_FLAGS := \
        - --add-exports jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED \
                --add-exports java.base/jdk.internal.module=ALL-UNNAMED \
        ))

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: