svetlo / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

gwtp 0.7 don't work with gwt 2.4.0 #400

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Alter gwtp-sample-hplace to use gwtp 0.7 and gwt 2.4.0
2. Compile with gwt 2.4.0

Compiling module com.gwtplatform.samples.hplace.Gwtphplacesample
   [ERROR] Errors in 'generated://F612C5F2CF5B665D86AD5586DB1EC46F/com/gwtplatform/samples/hplace/client/gin/ClientGinjectorImpl.java'
      [ERROR] Line 1097:  Rebind result 'com.google.gwt.event.shared.EventBus' cannot be abstract
   [ERROR] Cannot proceed due to previous errors

---
S.O.: Windows 8 Development Preview
IDE: Eclipse Indigo
Plugins: Google Suite Plugin 2.5.1v201201120043-rel-r37
         GWT-Plataform Plugin 0.6.1.201109181204

Original issue reported on code.google.com by windol...@gmail.com on 9 Feb 2012 at 6:54

GoogleCodeExporter commented 9 years ago
Did you use the gwtp-samples released with gwtp 0.7?
The samples from gwtp 0.6 won't work with gwtp 0.7 and gwt 2.4.0 due to porting 
of EventBus and other classes to bindary package (see 
http://code.google.com/p/gwt-platform/wiki/PortingV1#V0.7)

Original comment by bjoern.m...@gmail.com on 12 Feb 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Yes example 0.7 was used.
Realized all the changes documented and the problem persists.

Original comment by windol...@gmail.com on 12 Feb 2012 at 2:25

GoogleCodeExporter commented 9 years ago
The problem occurs due to import this in the generated class 
"com.gwtplatform.samples.hplace.client.gin.ClientGinjectorImpl.java" that is 
"import com.google.gwt.event.shared.EventBus;"

Original comment by windol...@gmail.com on 12 Feb 2012 at 2:37

GoogleCodeExporter commented 9 years ago
Replace
"import com.google.gwt.event.shared.EventBus"
with
"import com.google.web.bindery.event.shared.EventBus"
in *all* your classes where this import exists, don't change anything in 
generated classes because those changes will be lost. Then clean and build your 
project again. This fixed the problem for me.

Original comment by adam.prz...@gmail.com on 9 Aug 2012 at 2:10