felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Watson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4524) Substituted exports may cause IndexOutOfBoundsException
Date Tue, 27 May 2014 20:47:03 GMT
Thomas Watson created FELIX-4524:

             Summary: Substituted exports may cause IndexOutOfBoundsException
                 Key: FELIX-4524
                 URL: https://issues.apache.org/jira/browse/FELIX-4524
             Project: Felix
          Issue Type: Bug
          Components: Resolver
            Reporter: Thomas Watson

In some cases substituted exports can cause IndexOutOfBoundsException.  This can happen if
you have a substituted export for which the exported capability is the only capability that
can satisfy one or more other requirements.  For example:

Import-Package; substituted; version="[1.0,1.1)"

Export-Package: substituted; version=1.0
Import-Package: substituted; version=1.0

Export-Package: substituted; version=1.1
Import-Package: substituted; version=1.1

Resolving A as a root resource will cause something like the following exception:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
	at java.util.ArrayList.get(ArrayList.java:411)
	at org.apache.felix.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:692)
	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:251)

This message was sent by Atlassian JIRA

View raw message