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
Description
If a Java class initializes a boolean field to true, the shadows found for this class will contain the initialized value even when the original object had the field set to false (value I expected in the shadows too).
It seems it behaves correctly for Groovy classes though.
Steps To Reproduce
I have a runnable test case which isolates the bug and allows Javers Core Team to easily reproduce it. I have pushed this test case to my fork of this repository:
Description
If a Java class initializes a
boolean
field totrue
, the shadows found for this class will contain the initialized value even when the original object had the field set tofalse
(value I expected in the shadows too).It seems it behaves correctly for Groovy classes though.
Steps To Reproduce
I have a runnable test case which isolates the bug and allows Javers Core Team to easily reproduce it. I have pushed this test case to my fork of this repository:
https://github.com/andreiamariei/javers/blob/issue/shadow-of-class-with-boolean-field-initialized/javers-core/src/test/java/org/javers/core/cases/CaseShadowWithInitializedPrimitiveBooleanField.java#L16
Javers' Version
5.11.1
The text was updated successfully, but these errors were encountered: