GWT crashes the Cajoler
Lex Spoon <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
As a quick status update on GWT emitting Caja, I am currently
crashing the Cajoler. I tried running a small test gadget through
the Cajoler in order to get a list of concrete problems with cajoling
GWT's current output. I expected a long list of complaints, but
unfortunately the GWT output is so unexpected that the Cajoler
crashes before it can form a coherent complaint.
Here is the test gadget:
http://www.lexspoon.org/rpccalc-tmp/gadget.xml
Here is the top of the stack trace; it looks like a problem with
parsing the Javascript.
Retrieving http://www.lexspoon.org/rpccalc-tmp/gadget.xml @ null
LOG:Checkpoint: RewriteHtmlStage at T+1.202489339721288E9 seconds
Retrieving http://www.lexspoon.org/rpccalc-tmp/
org.lexspoon.gwtscratch.RPCCalc-xs.nocache.js @ gadget.xml:2+35@36 -
118@119
Exception in thread "main" java.lang.ClassCastException: object field
must be a string literal, not IntegerLiteral : 1
at
com.google.caja.parser.js.ObjectConstructor.childrenChanged
(ObjectConstructor.java:68)
at com.google.caja.parser.AbstractParseTreeNode
$MutationImpl.execute(AbstractParseTreeNode.java:383)
at com.google.caja.parser.js.ObjectConstructor.<init>
(ObjectConstructor.java:47)
at com.google.caja.parser.js.Parser.parseExpressionAtom
(Parser.java:1098)
at com.google.caja.parser.js.Parser.parseOp(Parser.java:741)
at com.google.caja.parser.js.Parser.parseExpressionPart
(Parser.java:703)
I went ahead and opened a Caja bug report about it:
http://code.google.com/p/google-caja/issues/detail?id=67&sort=-id
I know this is a vague bug report, but perhaps there are multiple
issues involved, so I went ahead and posted the whole (but small)
gadget. Any technical issues that arise might be better posted to
the issue's thread.
-Lex
_______________________________________________
e-lang mailing list
[email protected]
http://www.eros-os.org/mailman/listinfo/e-lang