You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by am...@apache.org on 2026/03/17 17:41:54 UTC
(aries-rsa) 06/23: Fix ImportRegistrationImpl.update not returning updated endpoint
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
commit 60bc1eab86e3eda82e2e0c71b5a6320db0ae9abd
Author: Amichai Rothman <am...@apache.org>
AuthorDate: Sun Mar 15 16:30:30 2026 +0200
Fix ImportRegistrationImpl.update not returning updated endpoint
---
.../main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rsa/src/main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java b/rsa/src/main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java
index 86373143..f7151cce 100644
--- a/rsa/src/main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java
+++ b/rsa/src/main/java/org/apache/aries/rsa/core/ImportRegistrationImpl.java
@@ -228,7 +228,8 @@ public class ImportRegistrationImpl implements ImportRegistration, ImportReferen
@SuppressWarnings("unchecked")
@Override
public boolean update(EndpointDescription endpoint) {
- importedService.setProperties(new Hashtable<>(endpoint.getProperties()));
+ this.endpoint = endpoint;
+ importedService.setProperties(new Hashtable(endpoint.getProperties()));
eventProducer.notifyUpdate(this);
return true;
}