Re: The new 2.1M1 release appears to have a few challenges

2010-05-20 Thread Lex Spoon
The new data-flow optimizer is choking on the code.  Some sort of
uncommon syntax in the code is breaking one of its assertions.


Let me poke around a little to see what's up. Filed as Issue 4957:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4957


Lex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



The new 2.1M1 release appears to have a few challenges

2010-05-19 Thread Paul Stockley
The first issue I got when I compiled my app was a bunch of errors
related to source missing from the bikeshed application. I fixed this
by removing the bikeshed jar from:

\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.m1-201005191217

After doing this development mode seems to work OK. However when I
compile my application I get

 [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:
73)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
255)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
243)
at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:327)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:295)
at com.google.gwt.dev.jjs.ast.JModVisitor
$ListContextImmutable.traverse(JModVisitor.java:161)
at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:
305)
at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:63)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:
314)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
266)
at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1269)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:
314)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
251)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
243)
at
com.google.gwt.dev.jjs.impl.gflow.DataflowOptimizer.execImpl(DataflowOptimizer.java:
114)
at
com.google.gwt.dev.jjs.impl.gflow.DataflowOptimizer.exec(DataflowOptimizer.java:
43)
at
com.google.gwt.dev.jjs.impl.gflow.DataflowOptimizer.exec(DataflowOptimizer.java:
52)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimize(JavaToJavaScriptCompiler.java:
638)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
560)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:517)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:435)
at com.google.gwt.dev.Compiler.run(Compiler.java:203)
at com.google.gwt.dev.Compiler.run(Compiler.java:173)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:145)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:152)
Caused by: java.lang.IllegalArgumentException: Unhandled exit: BREAK
at com.google.gwt.dev.jjs.impl.gflow.cfg.CfgBuilder
$BuilderVisitor.build(CfgBuilder.java:288)
at
com.google.gwt.dev.jjs.impl.gflow.cfg.CfgBuilder.build(CfgBuilder.java:
1136)
at com.google.gwt.dev.jjs.impl.gflow.DataflowOptimizer
$DataflowOptimizerVisitor.visit(DataflowOptimizer.java:64)
at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:
80)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:
314)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:
251)
... 26 more
  [ERROR] at DateTimeFormatterBuilder.java(1986): {
  int limit = String.$length(text) - position;
  zeroOffset : if (this.iZeroOffsetParseText != null) {
if (String.$length(this.iZeroOffsetParseText) == 0) {
  if (limit  0) {
final char c = String.$charAt(text, position);
if (c == '-' || c == '+') {
  break zeroOffset;
}
  }
  ((DateTimeParserBucket) bucket).iOffset = 0;
  ((DateTimeParserBucket) bucket).iZone = null;
  return position;
}
if (String.$regionMatches(text, position,
this.iZeroOffsetParseText, String.$length(this.iZeroOffsetParseText)))
{
  ((DateTimeParserBucket) bucket).iOffset = 0;
  ((DateTimeParserBucket) bucket).iZone = null;
  return position + String.$length(this.iZeroOffsetParseText);
}
  }
  if (limit = 1) {
return ~position;
  }
  boolean negative;
  char c = String.$charAt(text, position);
  if (c == '-') {
negative = true;
  } else if (c == '+') {
negative = false;
  } else {
return ~position;
  }
  --limit;
  ++position;
  if (DateTimeFormatterBuilder$TimeZoneOffset.$digitCount(text,
position, 2)  2) {
return ~position;
  }
  int offset;
  final int hours = FormatUtils.parseTwoDigits(text, position);
  if (hours  23) {
return ~position;
  }
  offset = hours * 360;
  limit -= 2;
  position += 2;
  parse : {
if (limit = 0) {
  break parse;
}
boolean expectSeparators;
c = String.$charAt(text, position);
if (c == ':') {
  expectSeparators = true;