[
https://jira.codehaus.org/browse/MGWT-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297277#comment-297277
]
Ketoth Xupack commented on MGWT-328:
------------------------------------
sorry. there is typo in description of course there is not a {{method2}}
appears duplicated, but {{method1}}. I'll attach test project a bit later
> generateAsync may produce async service with duplicate methods
> --------------------------------------------------------------
>
> Key: MGWT-328
> URL: https://jira.codehaus.org/browse/MGWT-328
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 2.4.0
> Environment: JDK 1.6, Maven 3.0.3
> Reporter: Ketoth Xupack
> Priority: Minor
>
> Suppose I have interface which shared between different projects
> {code:borderStyle=solid}
> public interface IA {
> void method1() throws Exception;
> }
> {code}
> Suppose I need to implement TestService
> {code:borderStyle=solid}
> @RemoteServiceRelativePath("TestService.rpc")
> public interface TestService extends IA, RemoteService {
> @Override void method1(); // take a note I'm amending throws declaration,
> which is legal
> }
> {code}
> After running
> {noformat}mvn clean generate-sources{noformat}
> I'm getting something like this
> {code:borderStyle=solid}
> public interface TestServiceAsync {
> /**
> * GWT-RPC service asynchronous (client-side) interface
> * @see com.rw.yams.stat.gwt.client.TestService
> */
> void method2( AsyncCallback<Void> callback );
> /**
> * GWT-RPC service asynchronous (client-side) interface
> * @see com.rw.yams.stat.gwt.client.TestService
> */
> void method2( AsyncCallback<Void> callback );
> /**
> * Utility class to get the RPC Async interface from client-side code
> */
> public static final class Util { ... }
> }
> {code}
> which is totally unacceptable
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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