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

Shadow contains incorrect value for initialized boolean field #1014

Closed
andreiamariei opened this issue Aug 18, 2020 · 2 comments
Closed

Shadow contains incorrect value for initialized boolean field #1014

andreiamariei opened this issue Aug 18, 2020 · 2 comments

Comments

@andreiamariei
Copy link
Contributor

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:

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

bartoszwalacik added a commit that referenced this issue Aug 30, 2020
@bartoszwalacik
Copy link
Member

fixed in 5.11.2

@andreiamariei
Copy link
Contributor Author

Many thanks!

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

No branches or pull requests

2 participants