Skip to content

Commit 3414458

Browse files
committed
fix a minor java 8 regression
1 parent dcfb0cc commit 3414458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void testCanonicalWithSpaces()
239239
{
240240
TypeFactory tf = TypeFactory.defaultInstance();
241241
Object objects = new TreeMap<Object, Object>() { }; // to get subtype
242-
String reflectTypeName = objects.getClass().getGenericSuperclass().getTypeName();
242+
String reflectTypeName = objects.getClass().getGenericSuperclass().toString();
243243
JavaType t1 = tf.constructType(objects.getClass().getGenericSuperclass());
244244
// This will throw an Exception if you don't remove all white spaces from the String.
245245
JavaType t2 = tf.constructFromCanonical(reflectTypeName);

0 commit comments

Comments
 (0)