error creating module in 7.1.0.20090722

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

error creating module in 7.1.0.20090722

Postby xristy » Wed Jul 22, 2009 1:43 pm

I'm in the process of upgrading from 1.5.3 to 1.7.0 and downloaded the latest build of GWTDesigner 7.1.0.20090722. I try creating a new GWT Java project from scratch including a new Module and the module is created with an error:

Multiple markers at this line
- The method onClick(ClickEvent) of type new ClickHandler(){} must override a superclass
method
- implements com.google.gwt.event.dom.client.ClickHandler.onClick

this is on line 23 of the created module. Here's a screenshot of the source file:
Picture 1.png
Picture 1.png (58.95 KiB) Viewed 407 times
.

Is this some error on my part? I've pointed GWTDesigner at the gwt-1.7.0 install and so on.
xristy
 
Posts: 33
Joined: Mon Aug 04, 2008 5:31 am

Re: error creating module in 7.1.0.20090722

Postby Eric Clayberg » Thu Jul 23, 2009 6:14 am

You can either:

1) Update to the latest build and try it again, or

2) Use JDK 1.6, or

3) Remove the @override annotation
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: error creating module in 7.1.0.20090722

Postby xristy » Thu Jul 23, 2009 11:44 am

Thanks. I hadn't noticed that JDK 1.6 was recommended for GWTDesigner and thought that the error might be perplexing to some. Removing the @override is simple but I must confess to being puzzled as to why the error even happens since the superclass method is being overridden in the anonymous sub-class.
xristy
 
Posts: 33
Joined: Mon Aug 04, 2008 5:31 am

Re: error creating module in 7.1.0.20090722

Postby Eric Clayberg » Thu Jul 23, 2009 12:00 pm

xristy wrote:Removing the @override is simple but I must confess to being puzzled as to why the error even happens since the superclass method is being overridden in the anonymous sub-class.

Maybe that was something that Sun fixed in JDK 1.6. GWT Designer itself does not care whether you use JDK 1.5 or 1.6.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest