Skip to content

IllegalStateException when groupByCommit called after compare #1160

@s-r-whittaker

Description

@s-r-whittaker

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions