Hello all,
I get a the following compilation exception:
java.lang.ClassCastException:
com.google.gwt.dev.jjs.ast.JPrimitiveType
at com.google.gwt.dev.jjs.impl.EqualityNormalizer
$BreakupAssignOpsVisitor.endVisit(EqualityNormalizer.java:86)
at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse
(JBinaryOperation.java:79)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
132)
... 34 more
with the following code:
public boolean isEntityAvailable() {
return (entity.isAvailable()) && (entity.getSize() != 0);
}
"isAvailable()" and "getSize()" are very simple getters that return
simple primitive values respectively a "boolean" and an "int".
I notice also that when using this code, it works:
public boolean isEntityAvailable() {
boolean result = (getEntity().isAvailable()) && (getEntity().getSize
() != 0);
return result;
}
Finally, I notice that it works also when the method returns only one
side of the "&&" boolean operation.
I suspect there could be a problem converting the Boolean class to
the boolean primitive type or vice and versa.
Can somebody tells me why?
Best regards,
Thierry Boileau
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---