[jboss-osgi-issues] [JBoss JIRA] Updated: (JBOSGI-137) Cannot parse Bundle-SymbolicName

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Tue Aug 25 16:25:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBOSGI-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated JBOSGI-137:
----------------------------------

    JBoss Forum Reference: http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251641#4251641


> Cannot parse Bundle-SymbolicName
> --------------------------------
>
>                 Key: JBOSGI-137
>                 URL: https://jira.jboss.org/jira/browse/JBOSGI-137
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core
>            Reporter: Thomas Diesler
>             Fix For: Framework 1.0.0 Alpha1
>
>
> The AbstractOSGiMetaData.parseSymbolicName() cannot always parse the symbolic name
> Currently there is a hack in place falls back to the main attribute
>    public String getBundleSymbolicName()
>    {
>       String symbolicName = null;
>       
>       ParameterizedAttribute parameters = parseSymbolicName();
>       if (parameters != null)
>          symbolicName = parameters.getAttribute();
>       // [TODO] Remove this fall back
>       if (symbolicName == null)
>          symbolicName = getMainAttribute(Constants.BUNDLE_SYMBOLICNAME);
>       
>       if (symbolicName == null)
>          throw new IllegalStateException("Cannot obtain " + Constants.BUNDLE_SYMBOLICNAME);
>       return symbolicName;
>    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list