JDK-8212665 : com/sun/jdi/DeferredStepTest.java: jj1 (line 57) - unexpected. lastLine=52, minLine=52, maxLine=55
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-10-18
  • Updated: 2020-08-27
  • Resolved: 2018-10-22
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.
JDK 11 JDK 12
11.0.10-oracleFixed 12 b17Fixed
Description
java.lang.RuntimeException: jj1 (line 57) - unexpected. lastLine=52, minLine=52, maxLine=55
	at DeferredStepTest.processThreadData(DeferredStepTest.java:161)
	at DeferredStepTest.next(DeferredStepTest.java:134)
	at DeferredStepTest.runCases(DeferredStepTest.java:177)
	at lib.jdb.JdbTest.run(JdbTest.java:96)
	at DeferredStepTest.main(DeferredStepTest.java:84)
	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:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)
Comments
Fix Request (11u) This backport improves testing and matches the codebases better (I see 11.0.10-oracle). Patch applies cleanly to 11u, com/sun/jdi tests pass in {fastdebug,release}.
25-08-2020

Root cause - one of the cycles is completed early and the test doesn't handle this correctly
18-10-2018