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

#6536, #6537: avoid stack overflow, catch missing artifacts to be downloaded. #6548

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Oct 9, 2023

I've worked with Micronaut 4.1.x. The project is apparently configured differently than the previous version ... so other problems surfaced.

#6537 was caused by a StackOverflowError - during dumping of complex structures, the traversal was not guarded against recursing through loop links inside the structure. This was fixed by noting the dumped instance in a Map and preventing the recursion if the dumper encounters that instance again.

#6536 was more tricky - it seems that getResolvedConfiguration and maybe other calls throw ArtifactResolveException for artifacts not yet in the local cache. The exception was not caught / detected properly and was treated as a load error. Now the entire analysis is wrapped by a guard, that rethrows those exceptions as NeedOnlineModeException, handled by the project loader.

@sdedic sdedic added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Gradle [ci] enable "build tools" tests VSCode Extension [ci] enable VSCode Extension tests Micronaut [ci] enable enterprise job labels Oct 9, 2023
@sdedic sdedic added this to the NB20 milestone Oct 9, 2023
@sdedic sdedic self-assigned this Oct 9, 2023
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane.

@sdedic sdedic merged commit 0625641 into apache:master Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Micronaut [ci] enable enterprise job VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
3 participants