Closed laeubi closed 1 month ago
FYI, this is Java 7 project
FYI, this is Java 7 project
FYI even Java 8 is EOL for a long time, so maybe time to upgrade :-)
But I'll adjust the code then... at least try to do so.
@cstamas rebased and changed to java 7 style
I have no idea why the ECA check fials, the ECA tool sais it is valid and I use it all the time for eclipse contributions...
Hi @laeubi - thanks for the PR, just wondering if a simple flush(ClassLoader)
would also work? ie. remove all entries for classes from the given class-loader. It's not a big deal if that removes more entries than strictly necessary, because any missing entry will get recreated if it's ever needed again in the future.
( I also re-ran the ECA check and it passed, so seems to have been a temporary glitch )
I just thought it might be more flexible to check for a class, but a classloader would work for sure as well.
@mcculls do you maybe want to take over the PR and just change it so it best fit the needs of sisu.inject project? I think the idea is quite clear on what to archive here?
Retargeted PR against new default branch main
, no other change done.
@cstamas please apply / use this as you find appropriate...
Superseded by https://github.com/eclipse-sisu/sisu-project/pull/138
Currently there is no way to ever remove a key from the map, this can lead to accumulation of memory as it is strongly referencing the class.
This adds a new method so keys can be removed from the map
Fixes #74
@cstamas @gnodet can you take a look?