[ https://issues.apache.org/jira/browse/FELIX-4524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Watson updated FELIX-4524: --------------------------------- Attachment: org.apache.felix.resolver.patch > 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 > 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)