Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
JDK1.5
Description
Don't know wheter it is a bug however:
ClickUtils.copyFormToObject does not work on bean properties which take a primitive type as parameter. Ie setQuantity(int quant); setActive(boolean true);
The reason is that the various if statements in the paramObject conversation do only check for the Object representation of the primitive types and not for the primitive types as such. ie
if(paramClass == Integer.class) ...
should be
if(paramClass == Integer.class || paramClass == Integer.TYPE) ...