diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/description/type/TypeDescriptionArrayProjectionTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/description/type/TypeDescriptionArrayProjectionTest.java index dbc744f08d..8fbb9c9720 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/description/type/TypeDescriptionArrayProjectionTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/description/type/TypeDescriptionArrayProjectionTest.java @@ -41,7 +41,7 @@ protected TypeDescription.Generic describeExceptionType(Method method, int index Type[] type = method.getGenericExceptionTypes(); Arrays.sort(type, new Comparator() { public int compare(Type left, Type right) { - return left.getTypeName().compareTo(right.getTypeName()); + return left.toString().compareTo(right.toString()); } }); return TypeDefinition.Sort.describe(type[index],