From 17bc988f158c9b478ada91be89b20748daaea5d6 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Wed, 18 Jan 2012 18:28:31 +0900 Subject: [PATCH] Support TypeVariable in TypeVariable when parsing base type. --- JavaClass.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/JavaClass.java b/JavaClass.java index 852e2f3..4d0fb3e 100644 --- a/JavaClass.java +++ b/JavaClass.java @@ -370,6 +370,8 @@ static Element getTypeParametersNode (Document doc, TypeVariable[] 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);