-
Notifications
You must be signed in to change notification settings - Fork 23
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
JDK9 support #9
Comments
@jhades this has just come up on https://jira.opendaylight.org/browse/INFRAUTILS-52 by @skitt ... Do you have any plans to look into and fix this? Or, if someone were to raise a PR with a fix, would you merge and push a new release to Maven Central? @stokito would you consider contributing to this open source project with a Pull Request which fixes this? |
Hi, @vorburger I can try to find some hotfix but actually, I think that from a practical point of view this not needed. Let me explain what I mean. The only one way to fix dependency hell is to engage microservices:
So finally, |
@stokito thanks for your thoughts. I want it anyway... 😄 @jhades I've looked into this, and unless I'm missing something realized this is far less trivial than I thought... while one could perhaps replace the use of The real issue is that in Java 9+ the application classloader is no longer an |
While there may be a way to signficantly adapt JHades to fix this, I've instead opted to build something quite like it on top classgraph, another existing library which is very convenient for any sort of classpath scanning in general (which duplicate detection is basically an application of) - see classgraph/classgraph#256. |
ClassGraph has not only support for JDK9+, but support for an extremely wide array of different classpath specification mechanisms. Maybe it makes sense to rebase JHades on top of ClassGraph, for maximum compatibility with a wide range of projects? Feel free to test that out. https://github.com/classgraph/classgraph/wiki/Classpath-Specification-Mechanisms At @vorburger's suggestion, I added this mechanism to ClassGraph to find duplicated classfiles (or drop "
@vorburger has a list of common duplicated resource names that should be ignored. |
see the ClasspathHellDuplicatesChecker in OpenDaylight's infrautils http://blog2.vorburger.ch/2019/02/how-to-find-duplicate-classes-and.html |
Hello, thank you for your great tool. Looks like it wasn't updated for long and it doesn't support JDK9. On start of my webapp I got the following:
P.S. http://jhades.org seems not working anymore
The text was updated successfully, but these errors were encountered: