[ 
http://jira.codehaus.org/browse/MGWT-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=270482#comment-270482
 ] 

Robert Scholte commented on MGWT-300:
-------------------------------------

This issue is a bit more complicated. It takes several steps to reproduce (see 
[QDOX-300#5|http://jira.codehaus.org/browse/QDOX-231?focusedCommentId=270450&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-270450])
The problem has to do with the orders of classlibraries. Unfortunaltely with 
the released versions of QDox it's not yet possible to change the order: system 
classloader and binaries on the classpath go first, followed by the sources. 
(That's why it is losing its annotation). 
With QDox-2.0 developers have full control over the order (they can even mix 
them). Up untill that release the only workaround seems to be a {{mvn clean}}

> Generated Async class does not reflect @RemoteServiceRelativePath annotation 
> if Service is already compiled
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: MGWT-300
>                 URL: http://jira.codehaus.org/browse/MGWT-300
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Michał Bartczak
>            Assignee: Robert Scholte
>
> While having following interface:
> {code:title=GreetingService.java}
> @RemoteServiceRelativePath("greetings")
> public interface GreetingService extends RemoteService {
>       String greetServer(String name) throws IllegalArgumentException;
> }
> {code}
> following Async is created:
> {code:title=GreetingServiceAsync.java}
> public interface GreetingServiceAsync
> {
>     /**
>      * GWT-RPC service  asynchronous (client-side) interface
>      * @see com.roche.test.client.GreetingService
>      */
>     void greetServer( java.lang.String p0, AsyncCallback<java.lang.String> 
> callback );
>     /**
>      * Utility class to get the RPC Async interface from client-side code
>      */
>     public static final class Util 
>     { 
>         private static GreetingServiceAsync instance;
>         public static final GreetingServiceAsync getInstance()
>         {
>             if ( instance == null )
>             {
>                 instance = (GreetingServiceAsync) GWT.create( 
> GreetingService.class );
>                 ServiceDefTarget target = (ServiceDefTarget) instance;
>                 target.setServiceEntryPoint( GWT.getModuleBaseURL() + 
> "GreetingService" );
>             }
>             return instance;
>         }
>         private Util()
>         {
>             // Utility class should not be instanciated
>         }
>     }
> }
> {code}
> Generated code should reflect the @RemoteServiceRelativePath annotation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to