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

javac does not find modules with -addmods and crashes.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 9
    • tools
    • None
    • generic
    • generic

      javac fails to build jsr166 sources, it cannot find -addmod java.corba and crashes with a completion error.
      error: cannot find module: java.corba
      /JSR166/jdk9/jdk/src/java.base/share/classes/module-info.java:128: error: module not found: java.corba
              java.corba;
                  ^
      /JSR166/jdk9/jdk/src/java.base/share/classes/module-info.java:164: error: module not found: java.corba
              java.corba,
                  ^
      /JSR166/jdk9/jdk/src/java.base/share/classes/module-info.java:212: error: module not found: jdk.compiler
              jdk.compiler;
                 ^
      /JSR166/jdk9/jdk/src/java.base/share/classes/module-info.java:216: error: module not found: java.corba
              java.corba,
                  ^
      com.sun.tools.javac.code.Symbol$CompletionFailure: cannot resolve modules
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(jdk.compiler@9-internal/JavaCompiler.java:817)
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(jdk.compiler@9-internal/JavaCompiler.java:778)
      at com.sun.tools.javac.main.JavaCompiler.access$100(jdk.compiler@9-internal/JavaCompiler.java:97)
      at com.sun.tools.javac.main.JavaCompiler$1.complete(jdk.compiler@9-internal/JavaCompiler.java:339)
      at com.sun.tools.javac.code.ClassFinder.fillIn(jdk.compiler@9-internal/ClassFinder.java:362)
      at com.sun.tools.javac.code.ModuleFinder$1.complete(jdk.compiler@9-internal/ModuleFinder.java:311)
      at com.sun.tools.javac.code.Symbol.complete(jdk.compiler@9-internal/Symbol.java:602)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(jdk.compiler@9-internal/Symbol.java:1219)
      at com.sun.tools.javac.comp.Modules$2.complete(jdk.compiler@9-internal/Modules.java:456)
      at com.sun.tools.javac.code.Symtab.lambda$new$0(jdk.compiler@9-internal/Symtab.java:568)
      at com.sun.tools.javac.code.Symbol.complete(jdk.compiler@9-internal/Symbol.java:602)
      at com.sun.tools.javac.comp.Modules$4.complete(jdk.compiler@9-internal/Modules.java:928)
      at com.sun.tools.javac.code.Symbol.complete(jdk.compiler@9-internal/Symbol.java:602)
      at jdk.javadoc.internal.tool.JavadocTool.getEnvironment(jdk.javadoc@9-internal/JavadocTool.java:192)
      at jdk.javadoc.internal.tool.Start.parseAndExecute(jdk.javadoc@9-internal/Start.java:403)
      at jdk.javadoc.internal.tool.Start.begin(jdk.javadoc@9-internal/Start.java:276)
      at jdk.javadoc.internal.tool.Start.begin(jdk.javadoc@9-internal/Start.java:222)
      at jdk.javadoc.internal.tool.Main.execute(jdk.javadoc@9-internal/Main.java:70)
      at jdk.javadoc.internal.tool.Main.main(jdk.javadoc@9-internal/Main.java:52)
      javadoc: error - fatal exception
      6 errors

            ksrini Kumar Srinivasan
            ksrini Kumar Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: