Okay, I got your casts right here. We'll now generate stuff like:
f.setObjectInteger((int)values.anInt());
f.setRawInt((int)values.anIntegerObject());
f.setObjectInteger((int)values.anIntegerObject());
f.setRawInt((int)values.anInt());
f.setObjectInteger((int)values.aDouble());
f.setRawInt((int)values.aDouble());
f.setObjectBoolean(values.aBoolean());
f.setRawBoolean(values.aBooleanObject());
Those casts only appear in front of method calls, not literals. That is:
f.setObjectInteger(1234);
f.setRawInt(1234);
And we reject:
<d:Foo objectInteger={values.aDoubleObject} />
<d:Foo rawInt={values.aDoubleObject} />
http://gwt-code-reviews.appspot.com/102804
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---