Skip to content

Commit 05f1365

Browse files
committed
Part 2 of changes for #4907 (converter access)
1 parent 9aa9fd0 commit 05f1365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/tools/jackson/databind/introspect/BasicBeanDescription.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,17 +676,17 @@ protected Converter<Object,Object> _createConverter(Object converterDef)
676676
return (Converter<Object,Object>) converterDef;
677677
}
678678
if (!(converterDef instanceof Class)) {
679-
throw new IllegalStateException("AnnotationIntrospector returned Converter definition of type "
680-
+converterDef.getClass().getName()+"; expected type Converter or Class<Converter> instead");
679+
throw new IllegalStateException("`AnnotationIntrospector` returned `Converter` definition of type "
680+
+ClassUtil.classNameOf(converterDef)+"; expected type `Converter` or `Class<Converter>` instead");
681681
}
682682
Class<?> converterClass = (Class<?>)converterDef;
683683
// there are some known "no class" markers to consider too:
684684
if (converterClass == Converter.None.class || ClassUtil.isBogusClass(converterClass)) {
685685
return null;
686686
}
687687
if (!Converter.class.isAssignableFrom(converterClass)) {
688-
throw new IllegalStateException("AnnotationIntrospector returned Class "
689-
+converterClass.getName()+"; expected Class<Converter>");
688+
throw new IllegalStateException("AnnotationIntrospector returned `Class<"
689+
+ClassUtil.classNameOf(converterClass)+"`>; expected `Class<Converter>`");
690690
}
691691
HandlerInstantiator hi = _config.getHandlerInstantiator();
692692
Converter<?,?> conv = (hi == null) ? null : hi.converterInstance(_config, _classInfo, converterClass);

0 commit comments

Comments
 (0)