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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thrown exceptions on MethodInfo
#633
Comments
I'm glad you're getting some good use out of ClassGraph! I hadn't heard of Rewrite, it looks like an awesome project. That would be awesome, if you'd be willing to contribute this! Thanks for the offer. Here are the pointers to what you will need to do (roughly... YMMV): Pick up the Plumb it through to Note that ClassGraph goes out of its way to only lazy-load information, so don't try parsing type descriptors or try to look up classes by name, leave them in string form, and parse or look them up as needed, caching the result, inside of You need to index the returned exception class names in If you do parse any type signatures or look up / create any and then to be safe, also add code here to set the Also add the Sorry for the complexity of all that :-) |
PS you should probably add two methods: |
Thanks for the tips -- will get working on it! |
Add thrown exceptions to MethodInfo (#633)
Released in 4.8.139. I'm sorry for the long delay in getting a release out, I have been traveling for the last 3 weeks with little downtime. Thanks again for your contribution! |
Hi 馃憢
I'd love to add thrown exceptions support to
MethodInfo
. Thrown exceptions show up ongetTypeSignatureOrTypeDescriptor().getThrowsSignature()
apparently only when at least one of the exceptions is a generic type variable.There appears to be a particular
attributeNameCpIdx
namedExceptions
that has the data for all other method signatures with exceptions. If you're willing, I am happy to provide a PR.We're using classgraph quite heavily in https://github.com/openrewrite/rewrite. Thanks!
The text was updated successfully, but these errors were encountered: