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 during Processing #422

Open
KaiSuchomel opened this issue Sep 30, 2022 · 1 comment · May be fixed by #475
Open

StackOverflowError during Processing #422

KaiSuchomel opened this issue Sep 30, 2022 · 1 comment · May be fixed by #475
Labels
Milestone

Comments

@KaiSuchomel
Copy link

KaiSuchomel commented Sep 30, 2022

Hey,
with the attached openapi_prev_reduced.yam it is possible to force a StackOverflowError!!

Exception in thread "main" java.lang.StackOverflowError
	at java.base/java.util.Arrays.spliterator(Arrays.java:5296)
	at java.base/java.util.Arrays.stream(Arrays.java:5447)
	at java.base/java.util.Arrays.stream(Arrays.java:5428)
	at java.base/java.util.stream.Stream.of(Stream.java:1426)
	at org.openapitools.openapidiff.core.model.ChangedExtensions.getChangedElements(ChangedExtensions.java:27)
	at org.openapitools.openapidiff.core.model.ComposedChanged.isChanged(ComposedChanged.java:19)
	at org.openapitools.openapidiff.core.model.Changed.isUnchanged(Changed.java:21)
	at org.openapitools.openapidiff.core.utils.ChangedUtils.isUnchanged(ChangedUtils.java:11)
	at org.openapitools.openapidiff.core.utils.ChangedUtils.isChanged(ChangedUtils.java:19)
	at org.openapitools.openapidiff.core.compare.ExtensionsDiff.diff(ExtensionsDiff.java:78)
	at org.openapitools.openapidiff.core.compare.schemadiffresult.SchemaDiffResult.diff(SchemaDiff

openapi_prev_reduced.yaml.zip

Command used:

java -jar cli/target/openapi-diff-cli-2.1.0-SNAPSHOT-all.jar openapi_prev_reduced.yaml openapi_prev_reduced.yaml
@joschi joschi added the bug label Sep 30, 2022
@joschi joschi added this to the 2.1.0 milestone Sep 30, 2022
joschi added a commit that referenced this issue Feb 28, 2023
@joschi joschi linked a pull request Feb 28, 2023 that will close this issue
@joschi joschi linked a pull request Feb 28, 2023 that will close this issue
@EfimenkoAndrew
Copy link

same issue. Please address it if possible

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

Successfully merging a pull request may close this issue.

3 participants