You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code above you can see HasSet is used, however AnnotationMirrorlink does declare hashCode method.
Proof:
You can see that the seenAnnotations set contains many duplicate values (highlighted in yellow)
and; that .hashCode() call on the Retention policy returns a random hashCode every time.
How I found it
Looking at language server logs.
Affect
I'm not too familiar with derive4j, take below with a grain of salt:
This issue does not affect code gen.
I believe the issue leads to miss-configured classPaths
The text was updated successfully, but these errors were encountered:
etherandrius
changed the title
StackOverflow exception when derivingConfig when @Data annotation is used
StackOverflow in derivingConfig when @Data annotation is used
Jul 2, 2022
Issue
Code that overflows here
In the code above you can see
HasSet
is used, howeverAnnotationMirror
link does declarehashCode
method.Proof:
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.
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: