Fix for [PAXSB-54] ServiceLookup.getService() returns invalid Service instances #1

Merged
merged 4 commits into from Apr 20, 2012

Conversation

Projects
None yet
2 participants
Member

tnaroska commented Apr 20, 2012

No description provided.

...mework/src/main/java/org/ops4j/pax/swissbox/framework/ServiceLookup.java
@@ -96,7 +96,8 @@
{
throw new ServiceLookupException( "gave up waiting for service " + className );
}
- return (T) svc;
+ // increment the service use count to keep it valid after the ServiceTracker is closed
@anpieber

anpieber Apr 20, 2012

Owner

does it look only strange in this browser or is there really a formatting issue? (spaces/tabs)

@tnaroska

tnaroska Apr 20, 2012

Member

You're right. Thanks for catching this

Owner

anpieber commented Apr 20, 2012

pls check the formatting; otherwise I've given you push access to the project (well, ops4j == open participation software for java :-))

tnaroska added a commit that referenced this pull request Apr 20, 2012

Merge pull request #1 from tnaroska/master
Fix for [PAXSB-54] ServiceLookup.getService() returns invalid Service instances

@tnaroska tnaroska merged commit 7ea9bac into ops4j:master Apr 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment