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

Classpath Scanning Does Not Work in Java 9 or Higher #1

Closed
MTrop opened this issue Jul 15, 2020 · 1 comment
Closed

Classpath Scanning Does Not Work in Java 9 or Higher #1

MTrop opened this issue Jul 15, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@MTrop
Copy link
Member

MTrop commented Jul 15, 2020

Small uses the URLClassLoader method to scan for classes, which works well for Java 8 and lower, but not for Java 9 - the ClassLoader type is different for the system loader. If there's no URLClassLoader, theres no packages to scan, and no application to start, which is, of course, bad.

A solution that works across versions of Java that does not break use in Java 8 is ideal, but I feel that this will be difficult to pull off.

@MTrop MTrop added the bug Something isn't working label Jul 15, 2020
MTrop added a commit that referenced this issue Jul 15, 2020
@MTrop
Copy link
Member Author

MTrop commented Jul 15, 2020

Issue fixed in commit 8684d8d.

It was staring me right in the face - a method that used the JARs and JMODs referenced directly in the runtime classpath to resolve class names and filter them. Its use must have been removed at some point. I knew I solved this years ago!

New release forthcoming.

@MTrop MTrop closed this as completed Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant