felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Heinemann (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-2071) Missing checks inside ModuleImpl (in Framework) which causes exceptions
Date Fri, 12 Feb 2010 14:52:28 GMT
Missing checks inside ModuleImpl (in Framework) which causes exceptions

                 Key: FELIX-2071
                 URL: https://issues.apache.org/jira/browse/FELIX-2071
             Project: Felix
          Issue Type: Improvement
          Components: Framework
    Affects Versions: felix-2.0.3
            Reporter: Lars Heinemann
         Attachments: ModuleImpl.java.patch

The method 
public Class getClassByDelegation(String name) throws ClassNotFoundException
lacks check for null or empty name parameter which causes trouble...

<stack-trace><![CDATA[java.lang.StringIndexOutOfBoundsException: String index out
of range: 0
 at java.lang.String.charAt(String.java:686)
 at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:635)
 at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1543)
 at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887)

Please review and apply the patch.

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

View raw message