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

IllegalStateException when groupByCommit called after compare #1160

Closed
swhittaker opened this issue Nov 11, 2021 · 2 comments
Closed

IllegalStateException when groupByCommit called after compare #1160

swhittaker opened this issue Nov 11, 2021 · 2 comments

Comments

@swhittaker
Copy link

After a compare I expected to be able to call pretty print on the Changes, instead an exception is seen
...

Steps To Reproduce
I have a runnable test case which isolates the bug and allows Javers Core Team to easily reproduce it.
It is tiny so included below:

    public static class MyClass{
        String value;
        public MyClass(String value){
            this.value = value;
        }
    }

    public static void main(String[] args) {
        final Javers javers = JaversBuilder.javers().build();
        final Diff diff = javers.compare(new MyClass("abc"), new MyClass("cde"));
        diff.getChanges().prettyPrint();
    }

Javers' Version
Tested on 6.4.1 and 5.14.0

@bartoszwalacik
Copy link
Member

thanks for reporting

@bartoszwalacik
Copy link
Member

fixed in 6.5.2

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