-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Stack overflow on recursive types (again) #4510
Labels
Milestone
Comments
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 19, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
11 tasks
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 20, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 28, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 28, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 29, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Oct 29, 2022
xRodney
added a commit
to xRodney/kubernetes-client
that referenced
this issue
Nov 4, 2022
manusa
pushed a commit
to xRodney/kubernetes-client
that referenced
this issue
Nov 16, 2022
manusa
pushed a commit
that referenced
this issue
Nov 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hi,
Unfortunately, even after the recent fixes for multimaps, keycloak-operator CRD still does not compile, it still fails with StackOverflowError.
But the stack trace is different this time, and is not connected with multimaps.
This can be reproduced on current master (to be 6.2)
Fabric8 Kubernetes Client version
SNAPSHOT
Steps to reproduce
I have been able to reproduce the issue in a unit test:
You will probably recognize this as a variation of an existing test. But the existing test has both fields as of simple
Ref
type, notList<Ref>
. It turns out, bothList
s are necessary for the Stack Overflow to occur.Expected behavior
Definitely no StackOverflow.
If the field is otherwise unannotated, I expect to get an error telling me about cyclic references.
But I should be able to use
@JsonIgnore
,@SchemaFrom
or@SchemaSwap
to exclude the field from generation or replace it with another type.Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
other (please specify in additional context)
Fabric8 Kubernetes Client Logs
No response
Additional context
The stack overflow happens in class
ClassDependenciesVisitor
:This visitor, it appears, is only used for tests / debugging purposes. The problematic portion can be simplified (or just commented out) and after necessary
@SchemaSwap
s, the keycloak CRD finally generates.Unfortunately, as it stands now, the end users cannot work this around using
@SchemaSwap
s or similar, because the SO happens in a code path that ignores these annotations.The text was updated successfully, but these errors were encountered: