Repository navigation
Add jrt:/ file system data entry source - #186
Conversation
| // Note: Closing the class loader might not be thread-safe because by default the JDK caches the | ||
| // underlying JarFile, so closing it implicitly here might affect other users of that jar | ||
| // See https://bugs.openjdk.org/browse/JDK-8246714 and potentially also | ||
| // https://bugs.openjdk.org/browse/JDK-8205976 |
There was a problem hiding this comment.
Not ideal that there are (potential) issues with URLClassLoader#close, but I am not sure if ProGuard should really try to work around JDK bugs (by not calling close()).
Not sure if or how often issues with this would occur in reality.
There was a problem hiding this comment.
yeah not ideal, but given it's a fallback and when it happens it is treated like a bug I am willing to let it slide, it is documented in code at least.
|
Failure is due to the PHP CVE I think, in any case code looks good. Can you use kotest to write the tests though for consistency? See the tests in #171 |
|
Have converted the test to Kotest now. But I did not have a closer look at your PR before, sorry. Should I adjust the implementation and tests to match what you have in #171 (e.g. adding new |
Marcono1234
left a comment
There was a problem hiding this comment.
Thanks @piazzesiNiccolo-GS for your improvements to my PR!
I have added a few suggestion comments regarding your changes, if you want I can implement them, except for the duplicate ErrorId (not sure which solution you prefer there), or feel free to do it yourself if you think the suggestions are useful.
|
Yeah thanks for the comments, what I get for just copypasting 🤦 I'll fix those and merge this in |
615cf7d to
5b2d51a
Compare
|
@Marcono1234 can you rebase your fork and the diff? I tried to add a release note on current status, and I also fixed the merge conflicts but GH is still complaining and it doesn't let me merge (seems like a bug honestly but idk). |
|
Thanks for updating the PR! Yes I can try rebasing on |
c00eccd to
c0e2148
Compare
c0e2148 to
3f99f7d
Compare
I ended up rebasing everything myself (I will squash merge but keeps everything tidier in any case). It should all be good to go (after you double check I didn't forget something else again 😄 ), thanks again. After merge I'll plan a release so we can use it in PG. |
|
Does the GitHub UI still prevent the merge, and is there something I can do, or does the UI allow the merge now? |
Needed by Guardsquare/proguard#541, see also original POC Guardsquare/proguard#504