JDK-8171829 : JShell test: jdk/jshell/CompletionSuggestionTest.java failed with AssertionError
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-12-21
  • Updated: 2020-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_minorUnresolved
Related Reports
Relates :  
Relates :  
Description
----------System.out:(161/8758)----------
[TestNG] Running:
  jdk/jshell/CompletionSuggestionTest.java

config CompletionSuggestionTest.setUp(): success
test CompletionSuggestionTest.testBrokenClassFile(): success
config KullaTesting.tearDown(): success
config CompletionSuggestionTest.setUp(): success
test CompletionSuggestionTest.testBrokenClassFile2(): failure
java.lang.AssertionError: Expected status to be: VALID, got: REJECTED
   expected-event: STEInfo key: MAIN_SNIPPET before: NONEXISTENT status: VALID sig: true cause: null
   got-event: key: 1 before: NONEXISTENT status: REJECTED sig: false cause: null expected [VALID] but found [REJECTED]
	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 KullaTesting$STEInfo.assertStatusMatch(KullaTesting.java:1201)
	at KullaTesting$STEInfo.assertMatch(KullaTesting.java:1165)
	at KullaTesting.checkEvents(KullaTesting.java:550)
	at KullaTesting.assertEval(KullaTesting.java:384)
	at KullaTesting.assertEval(KullaTesting.java:378)
	at KullaTesting.assertEval(KullaTesting.java:349)
	at CompletionSuggestionTest.testBrokenClassFile2(CompletionSuggestionTest.java:694)
	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:538)
	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:87)
	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:538)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
	at java.base/java.lang.Thread.run(Thread.java:844)
Comments
Removing the tier1 label since the test is no longer executed in tier1 and it doesn't seem like a priority to fix this issue.
27-04-2020

Test has been disabled (JDK-8172678) and the problem is either with the "Compiler" test infrastructure or addToClasspath (which is less important now since the recommended approach is to set classpath on instance initialization (as the tool does)). Reducing priority to P4 and thus Fix version to tbd_minor.
27-01-2017