-
Notifications
You must be signed in to change notification settings - Fork 394
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
Build and test with JDK 17 & 21 #607
Commits on Sep 11, 2023
-
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]>
Configuration menu - View commit details
-
Copy full SHA for f54ab00 - Browse repository at this point
Copy the full SHA f54ab00View commit details -
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 091c98b - Browse repository at this point
Copy the full SHA 091c98bView commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 5b82817 - Browse repository at this point
Copy the full SHA 5b82817View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 2d19d34 - Browse repository at this point
Copy the full SHA 2d19d34View commit details -
Update org.openrewrite.recipe:rewrite-recipe-bom to support Java 21
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7bd27df - Browse repository at this point
Copy the full SHA 7bd27dfView commit details -
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d15e2ea - Browse repository at this point
Copy the full SHA d15e2eaView commit details -
22-ea is not yet available at adoptium.net
Test against latest stable - JDK 20 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53eb0c8 - Browse repository at this point
Copy the full SHA 53eb0c8View commit details -
Add a Maven profile for JDK 21
Fix the version of EA Update maven-javadoc-plugin Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 355597e - Browse repository at this point
Copy the full SHA 355597eView commit details