Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecordedInvocation instance resolution is inconsistent #28907

Closed
bclozel opened this issue Aug 1, 2022 · 0 comments
Closed

RecordedInvocation instance resolution is inconsistent #28907

bclozel opened this issue Aug 1, 2022 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Aug 1, 2022

The RuntimeHintsAgent records all invocations to instrumented methods as RecordedInvocation. They retain a reference to the actual object instance in case of virtual invocations; in case of static invocations, this is set to null. Several methods in RecordedInvocation and RuntimeHintsInvocationsAssert do not take this nullability into account properly.

RecordedInvocation also incorrectly resolves the TypeReference of those recorded instances.

@bclozel bclozel added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Aug 1, 2022
@bclozel bclozel added this to the 6.0.0-M6 milestone Aug 1, 2022
@bclozel bclozel self-assigned this Aug 1, 2022
@bclozel bclozel closed this as completed in 42b3339 Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant