[
https://issues.apache.org/jira/browse/FELIX-3707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Watson updated FELIX-3707:
---------------------------------
Attachment: org.apache.felix.resolver.patch
There was a bug in my 'performance' fix from the last patch. The resultCache
must not be cleared out each time a ResolutionException is thrown. Instead a
new HashMap resultCache should only get created each time a new permutation is
attempted.
This updated patch simply removes line of code that clears the resultCache map.
The patch already creates a new resultCache map each time a new permutation is
checked.
> Uses constraints not properly checked with require bundle
> ---------------------------------------------------------
>
> Key: FELIX-3707
> URL: https://issues.apache.org/jira/browse/FELIX-3707
> Project: Felix
> Issue Type: Bug
> Components: Resolver
> Environment: All
> Reporter: Thomas Watson
> Labels: patch
> Attachments: org.apache.felix.resolver.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> The following set of manifests should result in require.b1 being unresolvable
> due to an inconsistent class space for package p1:
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: require.b1
> Bundle-Version: 1.0.0
> Require-Bundle: require.b2, require.b3
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: require.b2
> Bundle-Version: 1.0.0
> Export-Package: p1
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: require.b3
> Bundle-Version: 1.0.0
> Export-Package: p2; uses:="p1"
> Require-Bundle: require.b4
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: require.b4
> Bundle-Version: 1.0.0
> Export-Package: p1
> I will attach a possible fix and testcase
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira