google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

isCompatibleForOperator validate logic #434

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using 0.99.1-SNAPSHOT

Should it be:

"... else if (!type.isAssignableFrom(value.getClass) && ..."
instead of
"... else if (!value.getClass().isAssignableFrom(type) && ..."
in method: isCompatibleForOperator(Class<?> type, FilterOperator op, Object 
value) ??

Original issue reported on code.google.com by zhq.pers...@gmail.com on 8 Oct 2012 at 9:00