]> source.dussan.org Git - aspectj.git/commit
Revert WeavingAdaptor generated class map optimisation
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 8 Apr 2024 11:40:01 +0000 (13:40 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 8 Apr 2024 12:51:59 +0000 (14:51 +0200)
commit966326ea32f3ff0160e8d04f2b7d1b1830c62433
treefe50ed62320ea6d047ef0c2403af99e47187e870
parenta97bb76a14c0f8d0712c9db57de81643adb1666a
Revert WeavingAdaptor generated class map optimisation

This was introduced in commit 8a4aa03845 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 https://github.com/eclipse-aspectj/ajdt/issues/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>
loadtime/src/main/java/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java
weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java