You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we try to get fields for classes from jar archive we will have UnsolvedSymbolException. It happens if a field is parametrized and its generic type is primitive.
For example:
We have the class:
public class ClassWithFields {
private List<byte[]> genericPrimitiveArrayField = new ArrayList<>();
...
}
After execute the code, which is above, we will see the next stacktrace:
Unsolved symbol : byte[]
UnsolvedSymbolException{context='null', name='byte[]', cause='null'}
at com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver.solveType(CombinedTypeSolver.java:76)
at com.github.javaparser.symbolsolver.javassistmodel.JavassistUtils.lambda$objectTypeArgumentToType$3(JavassistUtils.java:182)
The text was updated successfully, but these errors were encountered:
izebit
added a commit
to izebit/javaparser
that referenced
this issue
Sep 17, 2018
izebit
changed the title
A primitive type as parameter for generic type and JavassisTypeSolver
A primitive type as parameter for generic type and JavassistTypeSolver
Sep 17, 2018
When we try to get fields for classes from jar archive we will have
UnsolvedSymbolException
. It happens if a field is parametrized and its generic type is primitive.For example:
We have the class:
and we want to get fields from this class:
After execute the code, which is above, we will see the next stacktrace:
The text was updated successfully, but these errors were encountered: