Need to use canonical rather than binary form when writing code
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@797607
13f79535-47bb-0310-9956-
ffa450edef68
* Determine whether to use the expected type's textual name or, if it's
* a primitive, the name of its correspondent boxed type.
*/
- String targetType = expectedType.getName();
+ String targetType = getCanonicalName(expectedType);
String primitiveConverterMethod = null;
if (expectedType.isPrimitive()) {
if (expectedType.equals(Boolean.TYPE)) {