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

processor finalization stacktrace #10467

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

andriy-dmytruk
Copy link
Contributor

The TypeElementVisitorProcessor calls the .finish() method on visitors and catches all exceptions if present. But the message might not be descriptive enough. For example a StackOverflowError does not have a message, so the logs would be:

[ERROR] error: Error finalizing type visitor [...Visitor@5e67a490]: null

Since the visitors are not expected to fail frequently, printing stack trace should not hurt performance.

The TypeElementVisitorProcessor calls the `.finish()` method on visitors and catches all exceptions if present. But the message might not be descriptive enough. For example a StackOverflowError does not have a message, so the logs would be:
`[ERROR] error: Error finalizing type visitor [...Visitor@5e67a490]: null`
Since the visitors are not expected to fail frequently, printing stack trace should not have a negative impact on performance.
Copy link

sonarqubecloud bot commented Feb 7, 2024

@sdelamo sdelamo merged commit ca0f0e7 into 4.4.x Feb 8, 2024
@sdelamo sdelamo deleted the andriy/processor-finalization-stacktrace branch February 8, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants