Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert WeavingAdaptor generated class map optimisation #304

Merged
merged 1 commit into from Apr 8, 2024

Conversation

kriegaex
Copy link
Contributor

@kriegaex kriegaex commented Apr 8, 2024

This was introduced in commit 8a4aa03 of PR #278 contribution as part of the #279 fix. The contributor thought that the generated closure class entries were never used, but in fact AJDT class OSGiWeavingAdaptor relies on the presence of those entries.

To the best of my present knowledge, it looks as if this change was the root cause of eclipse-aspectj/ajdt#57. Therefore, I reverted it, simultaneously refactoring Iterator::remove usage to delete entries from the map to Collection::removeIf.

Fixes #305.

This was introduced in commit 8a4aa03 of PR #278 contribution as part
of the #279 fix. The contributor thought that the generated closure
class entries were never used, but in fact AJDT class OSGiWeavingAdaptor
relies on the presence of those entries.

To the best of my present knowledge, it looks as if this change was the
root cause of eclipse-aspectj/ajdt#57.
Therefore, I reverted it, simultaneously refactoring Iterator::remove
usage to delete entries from the map to Collection::removeIf.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
@kriegaex kriegaex added bug Something isn't working AJDT Eclipse AspectJ Development Tools labels Apr 8, 2024
@kriegaex kriegaex added this to the 1.9.22.1 milestone Apr 8, 2024
@kriegaex kriegaex self-assigned this Apr 8, 2024
@kriegaex kriegaex merged commit 966326e into master Apr 8, 2024
4 checks passed
@kriegaex kriegaex deleted the ajdt-gh-57 branch April 8, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AJDT Eclipse AspectJ Development Tools bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WeavingAdaptor optimisations cause Equinox weaving problems
1 participant