-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and test with JDK 17 & 21 (#607)
* Build and test with JDK 17 & 21 Update Maven in CI to 3.9.4 (latest stable) Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Bump Mockito to 5.5.0 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Do not use Mockito to create a mock of java.io.File class It fails on JdK 21 with: ``` [ERROR] FilesTest.dontWaitTooMuchIfCantDelete:96 Mockito Mockito cannot mock this class: class java.io.File. If you're not sure why you're getting this error, please open an issue on GitHub. Java : 21 JVM vendor name : Oracle Corporation JVM vendor version : 21+35-2513 JVM name : OpenJDK 64-Bit Server VM JVM version : 21+35-2513 JVM info : mixed mode, sharing OS name : Linux OS version : 6.2.0-10018-tuxedo You are seeing this disclaimer because Mockito is configured to create inlined mocks. You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc. Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface java.io.Serializable, class java.lang.Object, class java.io.File, interface java.lang.Comparable] ``` Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Fix failing tests on JDK 21 The problem is explained at https://bugs.openjdk.org/browse/JDK-8304925 Update Byte-Buddy to fix failing tests due to Mockito not able to create mocks Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Update org.openrewrite.recipe:rewrite-recipe-bom to support Java 21 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Test against JDK 22-ea too Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * 22-ea is not yet available at adoptium.net Test against latest stable - JDK 20 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Add a Maven profile for JDK 21 Fix the version of EA Update maven-javadoc-plugin Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --------- Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
Showing
6 changed files
with
131 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters