[ 
https://issues.apache.org/jira/browse/FELIX-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15834680#comment-15834680
 ] 

Karl Pauls commented on FELIX-5483:
-----------------------------------

No, that is not the case. If you install a jar that doesn't have a: 
bundle-manifestversion 2 header in its manifest that jar will be treated as an 
R3 bundle. In that case it doesn't have a symbolic name as that only exists 
since OSGi R4 (older versions didn't have a symbolic name). Note that for this 
reason, the javadoc on getSymbolicName does say: "The symbolic name of this 
bundle or null if this bundle does not have a symbolic name".


> It's impossible to stop bundle using symbolic name if some installed bundle 
> does not have symbolic name
> -------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-5483
>                 URL: https://issues.apache.org/jira/browse/FELIX-5483
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Shell
>            Reporter: Alexandra Vasilyeva
>              Labels: patch-available
>         Attachments: ifSymbolicNameNull.diff
>
>
> If some installed bundle does not have symbolic name, it's impossible to stop 
> any bundle by symbolic name: error "gogo: IllegalArgumentException: Cannot 
> coerce stop(String) to any of [(boolean, Bundle[])]" is shown in console and 
> bundle still in active state.
> Provided patch checks bundle symbolic name for null equality while searching 
> needed bundle.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to