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

Calling blacklistLibOrExtJars without arguments causes an Exception #277

Closed
larsgrefer opened this issue Nov 1, 2018 · 4 comments
Closed

Comments

@larsgrefer
Copy link
Contributor

Calling blacklistLibOrExtJars() without arguments throws java.lang.IllegalArgumentException: Can only blacklist jars by leafname: /System/Library/Java/Extensions/MRJToolkit.jar while whitelistLibOrExtJars() without arguments works fine.

larsgrefer added a commit to larsgrefer/classgraph that referenced this issue Nov 1, 2018
@lukehutch
Copy link
Member

Thanks, I should fix the error message, but lib and ext jars are already blacklisted by default. What behavior were you trying to achieve by calling it without arguments?

@larsgrefer
Copy link
Contributor Author

I need to call enableSystemPackages() in order to find com.sun.faces and javax.faces classes but don't want to scan rt.jar

@larsgrefer
Copy link
Contributor Author

@lukehutch
Copy link
Member

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants