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

TypeVariableImpl cannot be cast to java.lang.reflect.ParameterizedType (Related to Issue # 146} #174

nileshagrawal02 opened this issue Dec 18, 2015 · 1 comment


Copy link

@nileshagrawal02 nileshagrawal02 commented Dec 18, 2015

Unable to generate the jsondoc json with latest released version 1.2.10. It happens when an object field is of collection type with generics. This seems to be related to Issue #146 but it falls on different code path.

public class ClassA<T> {
public List<T> objects;

Stack Trace:

Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.reflect.ParameterizedType
at org.jsondoc.springmvc.scanner.AbstractSpringJSONDocScanner.buildJSONDocObjectsCandidates(
at org.jsondoc.springmvc.scanner.AbstractSpringJSONDocScanner.jsondocObjects(
at org.jsondoc.core.scanner.AbstractJSONDocScanner.getJSONDoc(

Copy link

@pk1 pk1 commented May 5, 2016

Same problem here with the latest version 1.2.14

fabiomaffioletti added a commit that referenced this issue Aug 5, 2016
Fixes #174
@fabiomaffioletti fabiomaffioletti added this to the 1.2.16 milestone Aug 5, 2016
@fabiomaffioletti fabiomaffioletti self-assigned this Aug 5, 2016
@fabiomaffioletti fabiomaffioletti added the bug label Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.