felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-798) Current implementation of ServiceRegistration.getReference() does not follow the spec
Date Fri, 31 Oct 2008 17:15:44 GMT

     [ https://issues.apache.org/jira/browse/FELIX-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard S. Hall resolved FELIX-798.
-----------------------------------

    Resolution: Fixed

Stuart, I have applied your patch and fixed the other issue you raised. Please close this
bug if you are satisfied. Thanks.

> Current implementation of ServiceRegistration.getReference() does not follow the spec
> -------------------------------------------------------------------------------------
>
>                 Key: FELIX-798
>                 URL: https://issues.apache.org/jira/browse/FELIX-798
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Specification compliance
>    Affects Versions: felix-1.2.2
>            Reporter: Stuart McCulloch
>            Assignee: Richard S. Hall
>             Fix For: felix-1.4.0
>
>         Attachments: FELIX-798.txt
>
>
> According to the javadoc for getReference() it should throw an exception if the service
is unregistered:
>   java.lang.IllegalStateException - If this ServiceRegistration object has already been
unregistered.
> see http://www.osgi.org/javadoc/r4v41/org/osgi/framework/ServiceRegistration.html#getReference()
> However, the current ServiceRegistration implementation in Felix continues to return
a valid reference
> even after the service is unregistered (discovered this when working on service examples
for the book)
> I'll attach a patch for review.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message