commit | 86700136e7a28f731b9086a525610dc869473cfb | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Tue Jul 04 15:37:11 2006 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Tue Jul 04 15:37:11 2006 +0000 |
tree | c43eb3105c4fcfc515e28e82c2b454b83d7a526a | |
parent | 68988f941f34f3d5684f4312e261cda344822fbd [diff] |
Throw an exception per the spec if unregistered more than once. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@419038 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java index f8a15a0..035eebd 100644 --- a/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java +++ b/org.apache.felix.framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java
@@ -97,6 +97,10 @@ m_svcObj = null; m_factory = null; } + else + { + throw new IllegalStateException("Service already unregistered."); + } } //