What steps will reproduce the problem?
1. Use gwt-ent reflection to setMethod which accepts long type
2. java.lang.ClassCastException: java.lang.Long cannot be cast to
java.lang.Byte
at
com.gwtent.client.reflection.TypeOracle_Visitor$com_citi_gdos_vce_client_dataobj
ects_DimExecutionCost.invoke(transient
source for com.gwtent.client.reflection.TypeOracle_Visitor:3307)
3.
What is the expected output? What do you see instead?
long should not be casted byte
What version of the product are you using? On what operating system?
gwt-ent 0.7
gwt 1.6
smart gwt 1.2
Please provide any additional information below.
source : ReflectionCreator.java
long is casted to byte
float is casted to Long.
if (requestType.equals("long")) {
return "((Byte)" + argeName + ").byteValue()";
}
if (requestType.equals("float")) {
return "((Long)" + argeName + ").longValue()";
}
can you please fix this ASAP
Original issue reported on code.google.com by yasmeen....@gmail.com on 27 Sep 2009 at 6:00
Original issue reported on code.google.com by
yasmeen....@gmail.com
on 27 Sep 2009 at 6:00Attachments: