This is an automated email from the ASF dual-hosted git repository.
amichai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
The following commit(s) were added to refs/heads/master by this push:
new 6a09c782 ARIES-2112 - Fix ClassCastException on JDK9+
6a09c782 is described below
commit 6a09c782bf708bbe1f9cffc57a404e0155900a88
Author: Amichai Rothman <[email protected]>
AuthorDate: Mon Sep 11 15:13:19 2023 +0300
ARIES-2112 - Fix ClassCastException on JDK9+
---
eapub/src/main/java/org/apache/aries/rsa/eapub/EventAdminHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/eapub/src/main/java/org/apache/aries/rsa/eapub/EventAdminHelper.java
b/eapub/src/main/java/org/apache/aries/rsa/eapub/EventAdminHelper.java
index 284c7534..9c2392dd 100644
--- a/eapub/src/main/java/org/apache/aries/rsa/eapub/EventAdminHelper.java
+++ b/eapub/src/main/java/org/apache/aries/rsa/eapub/EventAdminHelper.java
@@ -76,7 +76,7 @@ public class EventAdminHelper implements
RemoteServiceAdminListener {
setIfNotNull(props, "service.remote.id", endpoint.getServiceId());
setIfNotNull(props, "service.remote.uuid",
endpoint.getFrameworkUUID());
setIfNotNull(props, "service.remote.uri", endpoint.getId());
- setIfNotNull(props, "objectClass",
endpoint.getInterfaces().toArray());
+ setIfNotNull(props, "objectClass",
endpoint.getInterfaces().toArray(new String[0]));
setIfNotNull(props, "service.imported.configs",
endpoint.getConfigurationTypes());
}
props.put("timestamp", System.currentTimeMillis());