hamcrest / JavaHamcrest

Java (and original) version of Hamcrest
http://hamcrest.org/
BSD 3-Clause "New" or "Revised" License
2.11k stars 376 forks source link

Compatibility in java versions #409

Closed yuuresuzuki closed 2 months ago

yuuresuzuki commented 2 months ago

Hi

I migrate our project from java 8 to java 11.

We use javahamcrest in our project.

So, I would like to know which version of javahamcrest corresponds to which version of java

Thank you.

tumbarumba commented 2 months ago

The latest version of Hamcrest is 2.2. It was compiled to be compatible with the 1.7 Java bytecode. As Java is fully backwards compatible, Hamcrest 2.2 can be used with all currently supported versions of Java.

We are looking to create a new version of Hamcrest, probably targeting Java 1.8 bytecode. When we do that, it will likely be called Hamcrest 3.0

yuuresuzuki commented 2 months ago

Thank you for your response. It was very helpful for me.