Skip to content

Commit

Permalink
Move to version 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-tremblay committed Oct 29, 2018
1 parent c003294 commit 0c45595
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 35 deletions.
30 changes: 5 additions & 25 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
This release adds support for Java 11 and moves to Java 8.

EasyMock inference has been changed. It should be backward compatible in most cases. However,
a type witness might be necessary.

To be clear, starting now `List<String> list = mock(List.class);` will compile perfectly without
any warning. However, `String s = mock(List.class);` will also compile. But I'm expecting you
not to be crazy enough to do such thing. It will do a `ClassCastException` at runtime anyway.

However, you might see your code failing to infer the return type, in that case, use a type
witness e.g. `foo(EasyMock.<List<String>>mock(List.class)` and it will some the problem nicely,
and again, without a warning.

Release notes
-------------
* Add Java 11 support
* Drop Java 6 and 7 support. Support now starts at Java 8
* Decorrelate mock requested and returned type
This is a patch release with sole purpose to move ASM and CGLIB to their final version with full
Java 11 support.

Change log
----------
* Remove most long time deprecated methods ([#231](https://github.com/easymock/easymock/issues/231))
* Relax typing for the mocking result ([#229](https://github.com/easymock/easymock/issues/229))
* Upgrade Objenesis to 3.0.1 ([#228](https://github.com/easymock/easymock/issues/228))
* Update cglib to 3.2.8 and asm to 6.2.1 ([#225](https://github.com/easymock/easymock/pull/225))
* Java 11 Compatibility check: EasyMock ([#224](https://github.com/easymock/easymock/issues/224))
* easymock 3.6 can't work with JDK11 EA kit ([#218](https://github.com/easymock/easymock/issues/218))
* update testng to 6.14.3 ([#216](https://github.com/easymock/easymock/pull/216))
* Upgrade to cglib 3.2.9 to support Java 11 ([#234](https://github.com/easymock/easymock/issues/234))
* Upgrade TestNG to version 7 ([#233](https://github.com/easymock/easymock/issues/233))
* Update to ASM 7.0 for full Java 11 support ([#232](https://github.com/easymock/easymock/pull/232))
2 changes: 1 addition & 1 deletion bench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-bench</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
<packaging>pom</packaging>
<name>EasyMock Parent</name>
<url>http://easymock.org</url>
Expand Down
2 changes: 1 addition & 1 deletion test-android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-android-tck</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-deploy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-deploy</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-integration</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-java8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-java8</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-nodeps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-nodeps</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-osgi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-testng/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.easymock</groupId>
<artifactId>easymock-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0.1</version>
</parent>

<artifactId>easymock-test-testng</artifactId>
Expand Down

0 comments on commit 0c45595

Please sign in to comment.