-
Notifications
You must be signed in to change notification settings - Fork 175
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
Unable to find generic type of class... for an interface #183
Comments
https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#getGenericSuperclass() ... If this Class represents either the Object class, an interface, a primitive type, or void, then null is returned. If this object represents an array class then the Class object representing the Object class is returned. |
@yukchan @oliemansm is there any workarounds for this issue? I'm running into it as well. |
@liangjacky Can you share an example what you're running into exactly? Ideally a small unit test to reproduce the issue? The fix suggested in the issue is already implemented for a while, but apparently that doesn't have the desired result. |
I branched out locally with the change mentioned and that fixed my issues. I will try to get the latest version later though as this is already incorporated |
oh, sad that the other one is not yet fixed in 5.4.0 |
@yukchan Do you already have a fix for that one available you could submit a PR for? |
Fix will be available in 5.4.1. |
Hi,
SchemaParserBuilder throws IllegalStateException "Unable to find generic type of class ..." when it is trying to load an interface method from parent. I guess the function relativeToPotentialParent should be revised to handle the case for interface:
Regards,
Alex
The text was updated successfully, but these errors were encountered: