-
Notifications
You must be signed in to change notification settings - Fork 50
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
StackOverflow in derivingConfig when @Data annotation is used #102
Comments
Also, this only happens when using eclipse java compiler. Bug does not happen if using javac compiler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Code that overflows here
In the code above you can see
HasSet
is used, howeverAnnotationMirror
link does declarehashCode
method.Proof:
![image](https://user-images.githubusercontent.com/20625511/177002983-fb810b65-0605-4db8-a476-84c5cf7dfac3.png)
seenAnnotations
set contains many duplicate values (highlighted in yellow).hashCode()
call on the Retention policy returns a random hashCode every time.How I found it
Looking at language server logs.
![image](https://user-images.githubusercontent.com/20625511/177003047-92ec7468-1467-42f2-baf2-30626064cb59.png)
Affect
I'm not too familiar with derive4j, take below with a grain of salt:
The text was updated successfully, but these errors were encountered: