JDK-8212629 : [TEST] wrong breakpoint in test/jdk/com/sun/jdi/DeferredStepTest
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 12
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-10-18
  • Updated: 2020-08-27
  • Resolved: 2018-10-19
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
The test log contains:

> stop at DeferredStepTestTarg$jj1:54
[jdb] Deferring breakpoint DeferredStepTestTarg$jj1:54.
[jdb] It will be set after the class is loaded.
[jdb] main[1] 
> stop at DeferredStepTestTarg$jj2:66
[jdb] Deferring breakpoint DeferredStepTestTarg$jj2:66.
[jdb] It will be set after the class is loaded.
[jdb] main[1] 
> stop at DeferredStepTestTarg$jj2:117
[jdb] Deferring breakpoint DeferredStepTestTarg$jj2:117.
[jdb] It will be set after the class is loaded.
[jdb] main[1] 
> run 
[debuggee] Version = 12-internal
[jdb] > Set deferred breakpoint DeferredStepTestTarg$jj1:54
[jdb] Unable to set deferred breakpoint DeferredStepTestTarg$jj2:117 : No code at line 117 in DeferredStepTestTarg$jj2
[jdb] 
[jdb] Stopping due to deferred breakpoint errors.

line 117 contains comment with "@2 breakpoint" which is parsed as breakpoint
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