Skip to content

Refactor InvocationsRecorderClassTransformer #33675

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

Closed
wants to merge 3 commits into from

Conversation

jukekxm
Copy link
Contributor

@jukekxm jukekxm commented Oct 9, 2024

Hello, This is why I opened PR.

  1. if statement in the isTransformationCandidate operates normally without the else statement.
  2. transform is not throwing an IllegalClassFormatException.
  3. I thought that using logger would be more performant than printStackTrace.

I would appreciate any feedback on this PR. Thank You.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 9, 2024
@bclozel
Copy link
Member

bclozel commented Oct 9, 2024

Thanks but I don't think those cosmetic changes help here.

We don't use a logger here as this is a Java agent that is meant to avoid loading any class that's not part of its codebase. Loading libraries like loggers would create lifecycle or class loading issues.

@bclozel bclozel closed this Oct 9, 2024
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants