designer 5.1.0 beta issue with RPC interface generating

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

designer 5.1.0 beta issue with RPC interface generating

Postby colinzhao » Fri Jul 18, 2008 10:06 am

I have start the migration to GWT 1.5 and Designer 5.1.0 today and notificed an issue with Designer generating incorrect *Async.java interface when I have an RPC call in an interface returning a void. Pay attention to the testCall() method of the following sample code:

Service interface

Code: Select all
public interface TestService extends RemoteService {
   /**
    * Utility class for simplifying access to the instance of async service.
    */
   public static class Util {
      private static TestServiceAsync instance;
      public static TestServiceAsync getInstance(){
         if (instance == null) {
            instance = (TestServiceAsync) GWT.create(TestService.class);
            ServiceDefTarget target = (ServiceDefTarget) instance;
            target.setServiceEntryPoint(GWT.getModuleBaseURL() + "TestService");
         }
         return instance;
      }
   }
   
   public void testCall();
}

Designer generated the its Async interface as following:

Code: Select all
public interface TestServiceAsync {
   public void testCall(AsyncCallback<void> callback);
}

which causes a compiler error and need to be corrected with <Void> instead of <void>.
colinzhao
 
Posts: 24
Joined: Sun Dec 31, 2006 4:03 pm

Re: designer 5.1.0 beta issue with RPC interface generating

Postby Eric Clayberg » Sun Jul 20, 2008 4:23 pm

This shoud be fixed in the latest v5.1.0 build.
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 3 guests