kohiro / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

Bug in ReflectionCreator.java #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed, Sorry for the delay. 

Original comment by JamesLuo...@gmail.com on 6 Apr 2010 at 3:46