Skip to content

Commit 03a20f3

Browse files
committed
revert message
1 parent 24b65c2 commit 03a20f3

File tree

1 file changed

+3
-1
lines changed
  • fluss-client/src/main/java/org/apache/fluss/client/converter

1 file changed

+3
-1
lines changed

fluss-client/src/main/java/org/apache/fluss/client/converter/PojoType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ static <T> PojoType<T> of(Class<T> pojoClass) {
7777
// Enforce nullable fields: primitives are not allowed in POJO definitions.
7878
if (field.getType().isPrimitive()) {
7979
throw new IllegalArgumentException(
80-
"Primitive types are not allowed; all fields must be nullable (use wrapper types).");
80+
String.format(
81+
"POJO class %s has primitive field '%s' of type %s. Primitive types are not allowed; all fields must be nullable (use wrapper types).",
82+
pojoClass.getName(), name, field.getType().getName()));
8183
}
8284
// use boxed type as effective type
8385
Class<?> effectiveType = boxIfPrimitive(field.getType());

0 commit comments

Comments
 (0)