You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2024/10/09 19:31:53 UTC
(jclouds) branch master updated (9b48d04502 -> e3f8de0a29)
This is an automated email from the ASF dual-hosted git repository.
gaul pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git
from 9b48d04502 Add ETag to failed conditional GETs in LocalBlobStore
new 4ef1d8b177 Upgrade to EasyMock 5.4.0
new 89e834a4c5 Ignore Java 21 SortedSet methods in test
new ed0604a08e Skip test incompatible with Java 21
new e3f8de0a29 Specify okhttp as a test dependency in apachehc
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java | 8 +++++++-
core/src/test/java/org/jclouds/reflect/Reflection2Test.java | 9 +++++++++
drivers/apachehc/pom.xml | 5 +++++
project/pom.xml | 2 +-
4 files changed, 22 insertions(+), 2 deletions(-)
(jclouds) 02/04: Ignore Java 21 SortedSet methods in test
Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gaul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git
commit 89e834a4c5b2ac67d74b01b58f9c5d2d0976f809
Author: Andrew Gaul <an...@gaul.org>
AuthorDate: Wed Oct 9 12:18:32 2024 -0700
Ignore Java 21 SortedSet methods in test
---
core/src/test/java/org/jclouds/reflect/Reflection2Test.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/core/src/test/java/org/jclouds/reflect/Reflection2Test.java b/core/src/test/java/org/jclouds/reflect/Reflection2Test.java
index d0ae93086c..8f8681677f 100644
--- a/core/src/test/java/org/jclouds/reflect/Reflection2Test.java
+++ b/core/src/test/java/org/jclouds/reflect/Reflection2Test.java
@@ -143,8 +143,17 @@ public class Reflection2Test {
.add("last")
.add("subSet")
.add("tailSet")
+ // Java 21 methods
+ .add("getFirst")
+ .add("getLast")
+ .add("addFirst")
+ .add("addLast")
+ .add("removeFirst")
+ .add("removeLast")
+ .add("reversed")
.build();
+
public void testMethods() {
Set<String> methodNames = FluentIterable.from(methods(Set.class)).transform(invokableToName)
.transform(toStringFunction())
(jclouds) 01/04: Upgrade to EasyMock 5.4.0
Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gaul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git
commit 4ef1d8b177f86d96143469b7f0cb5026f270b9de
Author: Andrew Gaul <an...@gaul.org>
AuthorDate: Wed Oct 9 12:10:42 2024 -0700
Upgrade to EasyMock 5.4.0
This resolves a JDK 21 compatibility issue:
java.lang.IllegalArgumentException: Could not create type
...
Caused by: java.lang.IllegalArgumentException: org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList$$$EasyMock$6 must be defined in the same package as org.easymock.internal.ClassProxyFactory
---
project/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/project/pom.xml b/project/pom.xml
index afc02212f6..4e86bfee76 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -404,7 +404,7 @@
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
- <version>5.1.0</version>
+ <version>5.4.0</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
(jclouds) 03/04: Skip test incompatible with Java 21
Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gaul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git
commit ed0604a08e0270234a4f760c713bbf99a8eead20
Author: Andrew Gaul <an...@gaul.org>
AuthorDate: Wed Oct 9 12:18:47 2024 -0700
Skip test incompatible with Java 21
---
.../java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/core/src/test/java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java b/core/src/test/java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java
index b16b77dfe4..944a163298 100644
--- a/core/src/test/java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java
+++ b/core/src/test/java/org/jclouds/reflect/Reflection2CoreJavaClassesTest.java
@@ -25,6 +25,7 @@ import java.lang.reflect.Method;
import java.lang.reflect.ReflectPermission;
import org.easymock.IAnswer;
+import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -70,7 +71,12 @@ public class Reflection2CoreJavaClassesTest {
}
});
replay(mockSecurityManager);
- System.setSecurityManager(mockSecurityManager);
+ try {
+ System.setSecurityManager(mockSecurityManager);
+ } catch (UnsupportedOperationException uoe) {
+ throw new SkipException("Not compatible with Java 21", uoe);
+ }
+
securityManagerOverridden = true;
methods(Enum.class);
}
(jclouds) 04/04: Specify okhttp as a test dependency in apachehc
Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gaul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git
commit e3f8de0a29956797b56c1c22e169387b97be6db8
Author: Andrew Gaul <an...@gaul.org>
AuthorDate: Wed Oct 9 12:27:39 2024 -0700
Specify okhttp as a test dependency in apachehc
This is not transitively included somehow.
---
drivers/apachehc/pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/apachehc/pom.xml b/drivers/apachehc/pom.xml
index 68ce165286..7e6c67c217 100644
--- a/drivers/apachehc/pom.xml
+++ b/drivers/apachehc/pom.xml
@@ -54,6 +54,11 @@
<artifactId>jetty-security</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.squareup.okhttp3</groupId>
+ <artifactId>mockwebserver</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>