gwt 2.2-rc1 widget compilation support

Can run vaadin 6.5.0 with widgets compiled against with gwt-user 2.2-rc1 and things seems functional.

Get compilation errors when using the below config with vaadin 6.5.0 and gwt 2.2-rc1
Using


<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>2.1.0-1</version>
  <dependencies>
          	<dependency>
          		<groupId>com.google.gwt</groupId>
          		<artifactId>gwt-dev</artifactId>
          		<version>2.2-rc1</version>
          	</dependency>
          	<dependency>
          		<groupId>com.google.gwt</groupId>
          		<artifactId>gwt-user</artifactId>
          		<version>2.2-rc1</version>
          	</dependency>
          	<dependency>
          		<groupId>com.google.gwt</groupId>
          		<artifactId>gwt-servlet</artifactId>
          		<version>2.2-rc1</version>
          	</dependency>
          </dependencies>
</plugin>

Compilation


[INFO]
 [gwt:compile {execution: default}]

[INFO]
 auto discovered modules [com.hack23.cia.web.widgets.WebWidgetSet]

[INFO]
 Compiling module com.hack23.cia.web.widgets.WebWidgetSet
[INFO]
    Validating newly compiled units
[INFO]
       [ERROR]
 Errors in 'jar:file:/home/pether/.m2/repository/com/vaadin/vaadin/6.5.0/vaadin-6.5.0.jar!/com/vaadin/terminal/gwt/client/ui/VListSelect.java'
[INFO]
          [ERROR]
 Line 59: The method addItem(String, HasDirection.Direction) is ambiguous for the type TooltipListBox
[INFO]
       [ERROR]
 Errors in 'jar:file:/home/pether/.m2/repository/com/vaadin/vaadin/6.5.0/vaadin-6.5.0.jar!/com/vaadin/terminal/gwt/client/ui/VNativeSelect.java'
[INFO]
          [ERROR]
 Line 54: The method addItem(String, HasDirection.Direction) is ambiguous for the type TooltipListBox
[INFO]
          [ERROR]
 Line 69: The method insertItem(String, HasDirection.Direction, int) is ambiguous for the type TooltipListBox
[INFO]
    [ERROR]
 Errors in 'jar:file:/home/pether/.m2/repository/com/vaadin/vaadin/6.5.0/vaadin-6.5.0.jar!/com/vaadin/terminal/gwt/client/WidgetSet.java'
[INFO]
       [ERROR]
  Internal compiler error
[INFO]
 java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
[INFO]
 	at com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator.generate(WidgetMapGenerator.java:95)
[INFO]
 	at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[INFO]
 	at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[INFO]
 	at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)

So guess some work is needed before widget building with gwt 2.2 can be supported.

Would be nice with bidirectional localisation support in vaadin.

Pether

Hi,

Vaadin 6.5 will stay on GWT 2.1 but we just moved the 6.6 development branch to GWT 2.2-M1 and fixed the ambiguity issues. So if you want to use 2.2-M1, grab the next 6.6 nightly