Skip to content

DebugInfo file+line info generation for susbtitutions is using the wrong source file #3420

@adinn

Description

@adinn

The debug info generator is currently generating the wrong file info for some method and field substitutions.

This can be shown by running any native app that uses method substitutions. Placing a break on at substituted method entry will use the right line number but display the code in the file for the original method.

The failure happens on Graal 21.1 and on the latest head.

The problem is actually a combination of several errors. One of them is down to a change to the way class SubstitutionMethod and SubstitutionField report the declaring class for a substituted method/field. The fix should include a modification to the debuginfotest test code (class hello.Hello) to ensure that it tests break points for substituted methods, ensuring that any future changes which might cause similar problems are caught early.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions