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

jdk/jshell/ToolReloadTest.java failed test ToolReloadTest.testReloadClasspath(): failure

    Details

      Description

      ----------System.out:(108/6444)----------
      [TestNG] Running:
        jdk/jshell/ToolReloadTest.java

      config ReplToolTesting.setUp(): success
      test ToolReloadTest.testEnvBadModule(): success
      config ReplToolTesting.setUp(): success
      test ToolReloadTest.testReloadClasspath(): failure
      java.lang.AssertionError: command output: /reload.
       expected [| Restarting and restoring state.
      -: String foo() { return (new pkg.A()).toString(); }
      -: String v = foo();] but found [| Restarting and restoring state.
      -: String foo() { return (new pkg.A()).toString(); }
      | Error:
      | package pkg does not exist
      | String foo() { return (new pkg.A()).toString(); }
      | ^---^
      -: String v = foo();
      | Error:
      | cannot find symbol
      | symbol: method foo()
      | String v = foo();
      | ^-^]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:496)
      at org.testng.Assert.assertEquals(Assert.java:125)
      at org.testng.Assert.assertEquals(Assert.java:178)
      at ReplToolTesting.assertOutput(ReplToolTesting.java:519)
      at ReplToolTesting.assertCommand(ReplToolTesting.java:501)
      at ReplToolTesting.assertCommand(ReplToolTesting.java:462)
      at ToolReloadTest.lambda$testReloadClasspath$11(ToolReloadTest.java:81)
      at ReplToolTesting$PromptedCommandOutputStream.write(ReplToolTesting.java:806)
      at java.base/java.io.PrintStream.write(PrintStream.java:528)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal.processOutputByte(LineDisciplineTerminal.java:253)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal$FilteringOutputStream.write(LineDisciplineTerminal.java:294)
      at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:233)
      at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:312)
      at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:316)
      at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153)
      at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:254)
      at java.base/java.io.PrintWriter.flush(PrintWriter.java:396)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.AbstractTerminal.flush(AbstractTerminal.java:159)
      at jdk.internal.le/jdk.internal.org.jline.utils.Display.update(Display.java:339)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3594)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3493)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:549)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:404)
      at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:200)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1238)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1174)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.run(JShellToolBuilder.java:240)
      at ReplToolTesting.testRawRun(ReplToolTesting.java:303)
      at ReplToolTesting.testRaw(ReplToolTesting.java:286)
      at ReplToolTesting.test(ReplToolTesting.java:240)
      at ReplToolTesting.test(ReplToolTesting.java:224)
      at ReplToolTesting.test(ReplToolTesting.java:220)
      at ReplToolTesting.test(ReplToolTesting.java:216)
      at ToolReloadTest.testReloadClasspath(ToolReloadTest.java:73)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)

      ...

      ----------System.err:(63/4470)----------
      java.io.EOFException
      at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397)
      at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3284)
      at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1047)
      at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277)
      at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99)
      at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160)
      at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:875)
      at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:140)
      at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3554)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1305)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.run(JShellToolBuilder.java:240)
      at ReplToolTesting.testRawRun(ReplToolTesting.java:303)
      at ReplToolTesting.testRaw(ReplToolTesting.java:286)
      at ReplToolTesting.test(ReplToolTesting.java:240)
      at ReplToolTesting.test(ReplToolTesting.java:224)
      at ReplToolTesting.test(ReplToolTesting.java:220)
      at ReplToolTesting.test(ReplToolTesting.java:216)
      at ToolReloadTest.testReloadCrashRestore(ToolReloadTest.java:184)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)

        Attachments

          Activity

            People

            • Assignee:
              rfield Robert Field
              Reporter:
              xyin Chris Yin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: