Skip to content

Commit

Permalink
Support TypeVariable in TypeVariable when parsing base type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Eno committed Jan 18, 2012
1 parent b7d0f47 commit 17bc988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions JavaClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ static Element getTypeParametersNode (Document doc, TypeVariable<Method>[] tps)
tc_elem.setAttribute ("type", tcc.getName ());
else if (pt != null)
tc_elem.setAttribute ("type", pt.toString ()); // FIXME: this is not strictly compliant to the ParameterizedType API (no assured tostring() behavior to return type name)
else if (tc instanceof TypeVariable<?>)
tc_elem.setAttribute ("type", ((TypeVariable<?>) tc).getName ());
else
throw new UnsupportedOperationException ("Type is " + tc.getClass ());
tcs_elem.appendChild (tc_elem);
Expand Down

0 comments on commit 17bc988

Please sign in to comment.