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

[lworld] Jshell crashes on simple assignments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      On Lworld branch:

      $ ~/gitreps/valhalla/build/linux-x86_64-server-release/jdk/bin/jshell
      | Welcome to JShell -- Version 18-internal
      | For an introduction type: /help intro

      jshell> primitive class X {}
      | created class X

      jshell> X.ref xr = new X()
      xr ==> [X]

      jshell> X x = xr
      An exception has occurred in the compiler (18-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
      java.lang.AssertionError: Filling string:///REPL/$JShell$11$X.class during WrappedJavaFileObject[jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject[string:///REPL/$JShell$12.class]]
      at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:162)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:354)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:291)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:1359)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.isPrimitiveClass(Symbol.java:420)
      at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.isPrimitiveClass(Type.java:1323)
      at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.referenceProjection(Type.java:1359)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.classSigToType(ClassReader.java:576)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.sigToType(ClassReader.java:487)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.sigToType(ClassReader.java:436)
      at jdk.compiler/com.sun.tools.javac.util.Name.map(Name.java:203)
      at jdk.compiler/com.sun.tools.javac.jvm.PoolReader.getType(PoolReader.java:170)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readField(ClassReader.java:2261)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2635)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassBuffer(ClassReader.java:2730)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassFileInternal(ClassReader.java:2770)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2734)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:361)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:291)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:434)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:2074)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackageInternal(Resolve.java:2496)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2484)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:4540)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4425)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2516)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:684)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribImportQualifier(Attr.java:421)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.doImport(TypeEnter.java:417)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:371)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:328)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:289)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:258)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:205)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:619)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:596)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1042)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:345)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:399)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$analyze$1(JavacTaskImpl.java:379)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:379)
      at jdk.jshell/jdk.jshell.TaskFactory$AnalyzeTask.analyze(TaskFactory.java:390)
      at jdk.jshell/jdk.jshell.TaskFactory$AnalyzeTask.<init>(TaskFactory.java:384)
      at jdk.jshell/jdk.jshell.TaskFactory.lambda$analyze$1(TaskFactory.java:177)
      at jdk.jshell/jdk.jshell.TaskFactory.lambda$runTask$4(TaskFactory.java:212)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskPool.getTask(JavacTaskPool.java:193)
      at jdk.jshell/jdk.jshell.TaskFactory.runTask(TaskFactory.java:205)
      at jdk.jshell/jdk.jshell.TaskFactory.analyze(TaskFactory.java:174)
      at jdk.jshell/jdk.jshell.TaskFactory.analyze(TaskFactory.java:160)
      at jdk.jshell/jdk.jshell.Eval.compileAndLoad(Eval.java:1010)
      at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:890)
      at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:137)
      at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3618)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1342)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1240)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1211)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:995)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:261)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
      Exception in thread "main" java.lang.InternalError: Exception during analyze - java.lang.AssertionError: Filling string:///REPL/$JShell$11$X.class during WrappedJavaFileObject[jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject[string:///REPL/$JShell$12.class]]
      at jdk.jshell/jdk.jshell.TaskFactory$AnalyzeTask.analyze(TaskFactory.java:393)
      at jdk.jshell/jdk.jshell.TaskFactory$AnalyzeTask.<init>(TaskFactory.java:384)
      at jdk.jshell/jdk.jshell.TaskFactory.lambda$analyze$1(TaskFactory.java:177)
      at jdk.jshell/jdk.jshell.TaskFactory.lambda$runTask$4(TaskFactory.java:212)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskPool.getTask(JavacTaskPool.java:193)
      at jdk.jshell/jdk.jshell.TaskFactory.runTask(TaskFactory.java:205)
      at jdk.jshell/jdk.jshell.TaskFactory.analyze(TaskFactory.java:174)
      at jdk.jshell/jdk.jshell.TaskFactory.analyze(TaskFactory.java:160)
      at jdk.jshell/jdk.jshell.Eval.compileAndLoad(Eval.java:1010)
      at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:890)
      at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:137)
      at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3618)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1342)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1240)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1211)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:995)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:261)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
      Caused by: java.lang.IllegalStateException: java.lang.AssertionError: Filling string:///REPL/$JShell$11$X.class during WrappedJavaFileObject[jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject[string:///REPL/$JShell$12.class]]
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
      at jdk.jshell/jdk.jshell.TaskFactory$AnalyzeTask.analyze(TaskFactory.java:390)
      ... 18 more
      Caused by: java.lang.AssertionError: Filling string:///REPL/$JShell$11$X.class during WrappedJavaFileObject[jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject[string:///REPL/$JShell$12.class]]
      at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:162)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:354)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:291)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:1359)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.isPrimitiveClass(Symbol.java:420)
      at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.isPrimitiveClass(Type.java:1323)
      at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.referenceProjection(Type.java:1359)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.classSigToType(ClassReader.java:576)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.sigToType(ClassReader.java:487)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.sigToType(ClassReader.java:436)
      at jdk.compiler/com.sun.tools.javac.util.Name.map(Name.java:203)
      at jdk.compiler/com.sun.tools.javac.jvm.PoolReader.getType(PoolReader.java:170)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readField(ClassReader.java:2261)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2635)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassBuffer(ClassReader.java:2730)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassFileInternal(ClassReader.java:2770)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2734)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:361)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:291)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:434)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:2074)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackageInternal(Resolve.java:2496)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2484)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:4540)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4425)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2516)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:684)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribImportQualifier(Attr.java:421)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.doImport(TypeEnter.java:417)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:371)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:328)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:289)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:258)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:205)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:710)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1447)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:619)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:596)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1042)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:345)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:399)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$analyze$1(JavacTaskImpl.java:379)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:379)
      ... 19 more
      $
      $
      $ pwd
      /home/srikanth/tmp
      $ pwd
      /home/srikanth/tmp

        Attachments

          Activity

            People

            Assignee:
            sadayapalam Srikanth Adayapalam
            Reporter:
            sadayapalam Srikanth Adayapalam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: