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

StackOverflowError on project import #79

Closed
bjorndarri opened this issue Aug 26, 2019 · 2 comments
Closed

StackOverflowError on project import #79

bjorndarri opened this issue Aug 26, 2019 · 2 comments

Comments

@bjorndarri
Copy link

When trying the new 2.15.0 version I ran into a StackOverflowError during project import, seems to be due to #76 and cyclical project dependencies:

Cause: java.lang.StackOverflowError at java.base/jdk.internal.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.beryx.jlink.util.Util.getAllDependentProjects(Util.groovy:349) at org.beryx.jlink.util.Util$_getAllDependentProjects_closure16.doCall(Util.groovy:351) at org.beryx.jlink.util.Util$_getAllDependentProjects_closure16.call(Util.groovy) at org.beryx.jlink.util.Util.getAllDependentProjects(Util.groovy:351) at org.beryx.jlink.util.Util$_getAllDependentProjects_closure16.doCall(Util.groovy:351) at org.beryx.jlink.util.Util$_getAllDependentProjects_closure16.call(Util.groovy) at org.beryx.jlink.util.Util.getAllDependentProjects(Util.groovy:351)

I created a minimal project for reproducing the issue:
https://github.com/bjorndarri/badass-jlink-plugin-76-test
where 'core' has a testRuntime dependency on 'model', which has an api dependency on 'core', 'server' then depends on both and triggers the error on project import.

@siordache
Copy link
Member

Oops! Fixed in 2.15.1.

@bjorndarri
Copy link
Author

Not an issue in 2.15.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants