You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thomas Watson (JIRA)" <ji...@apache.org> on 2014/05/29 15:59:02 UTC

[jira] [Closed] (FELIX-4524) Substituted exports may cause IndexOutOfBoundsException

     [ https://issues.apache.org/jira/browse/FELIX-4524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Watson closed FELIX-4524.
--------------------------------


Thanks!

> 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
>            Assignee: Richard S. Hall
>             Fix For: resolver-1.2.0
>
>         Attachments: org.apache.felix.resolver.patch
>
>
> 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:
> BSN: A
> Import-Package; substituted; version="[1.0,1.1)"
> BSN: B
> Export-Package: substituted; version=1.0
> Import-Package: substituted; version=1.0
> BSN: C
> 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
(v6.2#6252)