File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
bson/src/main/org/bson/codecs/pojo Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ private <T> void processCreatorAnnotation(final ClassModelBuilder<T> classModelB
143
143
List <Type > parameterGenericTypes = creatorExecutable .getParameterGenericTypes ();
144
144
145
145
if (properties .size () != parameterTypes .size ()) {
146
- throw creatorExecutable .getError (clazz , "All parameters must be annotated with a @BsonProperty in %s" );
146
+ throw creatorExecutable .getError (clazz , "All parameters in the @BsonCreator method / constructor must be annotated "
147
+ + "with a @BsonProperty." );
147
148
}
148
149
for (int i = 0 ; i < properties .size (); i ++) {
149
150
boolean isIdProperty = creatorExecutable .getIdPropertyIndex () != null && creatorExecutable .getIdPropertyIndex ().equals (i );
You can’t perform that action at this time.
0 commit comments