[jboss-osgi-issues] [JBoss JIRA] Created: (JBOSGI-153) Cannot parse Import Package parameters

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Fri Sep 11 03:06:24 EDT 2009


Cannot parse Import Package parameters
--------------------------------------

                 Key: JBOSGI-153
                 URL: https://jira.jboss.org/jira/browse/JBOSGI-153
             Project: JBoss OSGi
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Core
            Reporter: Thomas Diesler
            Assignee: Adrian Brock
             Fix For: Framework 1.0.x


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