Generated Async class does not reflect @RemoteServiceRelativePath annotation
----------------------------------------------------------------------------
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
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