Skip to content

Thrown exceptions on MethodInfo #633

@jkschneider

Description

@jkschneider

Hi 👋

I'd love to add thrown exceptions support to MethodInfo. Thrown exceptions show up on getTypeSignatureOrTypeDescriptor().getThrowsSignature() apparently only when at least one of the exceptions is a generic type variable.

There appears to be a particular attributeNameCpIdx named Exceptions 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions