sivarajankumar / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

The return type is incompatible with Widget.createHandlerManager() #340

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?

gwt-incubator-20100204-r1747.jar

What OS and browser are you using?

IE8

Do you see this error in hosted mode, web mode, or both?

Hosted

(If possible, please include a test case that shows the problem)

Hopefully using the test case you have generously provided, what steps 
will reproduce the problem? 
1. Unable to compile.
2.
3.

What is the expected output? What do you see instead?

Workaround if you have one:

Please provide any additional information below,  and thank you for taking 
the time and effort to report this issue, as good issue reports are 
critical for our quest to make GWT's new widgets and libraries shine.

Original issue reported on code.google.com by imhtt...@gmail.com on 17 Feb 2010 at 7:53

GoogleCodeExporter commented 8 years ago
Getting the following error:

16:12:52.062 [ERROR] [myModule] Errors in 
'jar:file:/D:/MyProject/lib/gwt-incubator-20100204-r1747.jar!/com/google/gwt/gen
2/widgetbase/client/Gen2Widget.java'

16:12:52.062 [ERROR] [myModule] Errors in 
'jar:file:/D:/MyProject/lib/gwt-incubator-20100204-r1747.jar!/com/google/gwt/gen
2/widgetbase/client/Gen2Widget.java'

Original comment by nirmaljp...@gmail.com on 27 Jul 2010 at 10:44

GoogleCodeExporter commented 8 years ago
This is with GWT-2.1.0 M2.  Widget now defines "getHandlerManager" (returning 
com.google.gwt.event.shared.HandlerManager), and Gen2Widget overrides this 
method with a different return type 
(com.google.gwt.gen2.event.shared.HandlerManager)

Original comment by britt...@gmail.com on 17 Aug 2010 at 3:47

GoogleCodeExporter commented 8 years ago
I get this with version 2.0.1 as well.
http://mirrors.ibiblio.org/pub/mirrors/maven2/com/google/gwt/gwt-incubator/
http://mvnrepository.com/artifact/com.google.gwt/gwt-incubator/2.0.1
http://code.google.com/p/google-web-toolkit-incubator/source/browse/#svn/tags/2.
0.1
http://www.jarvana.com/jarvana/inspect-pom/com/google/gwt/gwt-incubator/2.0.1/gw
t-incubator-2.0.1.pom
<dependency>
    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-incubator</artifactId>
    <version>2.0.1</version>
</dependency>

Original comment by datasurfer on 9 Sep 2010 at 7:29

GoogleCodeExporter commented 8 years ago
I received this error as well with the first release candidate of GWT 2.1.

This is an important issue, since I do not want to skip on new features of 2.1 
when using the incubator (and rewriting my stuff with new Data binding support 
in 2.1 is risky and will take some time)

Original comment by thomaszw...@gmail.com on 13 Oct 2010 at 7:24

GoogleCodeExporter commented 8 years ago
To workaround this issue you need to patch 
com.google.gwt.gen2.event.shared.HandlerManager to be extended from 
com.google.gwt.event.shared.HandlerManager. Just create package 
com.google.gwt.gen2.event.shared in your project, put attached 
HandlerManager.java there and that's it. It works for our project (no 
compilation error appears).

Original comment by klims...@gmail.com on 13 Oct 2010 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks - works great!

Original comment by thomaszw...@gmail.com on 2 Nov 2010 at 1:59

GoogleCodeExporter commented 8 years ago
Works fine for me in GWT 2.1.0 - thanks for the fix and special thanks for the 
clear instructions.

Original comment by richardl...@gmail.com on 5 Nov 2010 at 9:00

GoogleCodeExporter commented 8 years ago
The the above fix works, but it would be nicer if this can be made in the 
incubator rather than adding this file to individual projects that uses 
incubator.

Original comment by iale...@gmail.com on 10 Nov 2010 at 2:13

GoogleCodeExporter commented 8 years ago
Works great for me in GWT 2.1.1 as well. Thanks.

Original comment by ckle...@gmail.com on 3 Jan 2011 at 6:54

GoogleCodeExporter commented 8 years ago
I had the same error but it was because i had 2 versions of GWT incubator, as 
soon as i removed the older version the error went away.

Original comment by bhagwat....@gmail.com on 2 Feb 2011 at 7:44