Fix incorrect exception message

This commit is contained in:
Trustin Lee 2013-02-08 17:25:16 +09:00
parent 1eafffbec5
commit 646cd455ea

View File

@ -42,7 +42,7 @@ public final class TypeParameterFinder {
Type[] types = ((ParameterizedType) currentClass.getGenericSuperclass()).getActualTypeArguments(); Type[] types = ((ParameterizedType) currentClass.getGenericSuperclass()).getActualTypeArguments();
if (types.length - 1 < typeParamIndex || !(types[0] instanceof Class)) { if (types.length - 1 < typeParamIndex || !(types[0] instanceof Class)) {
throw new IllegalStateException( throw new IllegalStateException(
"cannot determine the inbound message type of " + thisClass.getSimpleName()); "cannot determine the type of the type parameter of " + thisClass.getSimpleName());
} }
messageType = (Class<?>) types[0]; messageType = (Class<?>) types[0];