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

Jisakiel commented on MGWT-186:
-------------------------------

Just stumped into this, which I can reproduce under both maven2 (2.2.1) and 
maven3 (3.0.3). 

RPCService extends RemoteService{
  public ArrayList<RadarSite> requestAll(); //RadarSite is a custom server 
class implementing Serializable 
  public HashMap<String, Vector<CustomPoliLine>> requestPolilines(); 
//CustomPoliLine is a client class implementing gwt's isSerializable
}

gets built into: 
public interface RPCServiceAsync{
  void requestAll ( AsyncCallback<java.util.ArrayList> callback );
  void requestPolilines( AsyncCallback<java.util.HashMap> callback );
} 

which break the build as the callbacks are properly tiped. 


no custom maven stuff (just starting out). The only peculiar thing in pom.xml 
is that I make the plugin depend on GWT 2.1.1 as described on 
http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html
 , instead of 2.3.0 , because a bug in GWT Maps, a module on which the code 
depends. Also, the source and target are defined as 1.6 : 

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>2.0</version>
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>

WRT software versions: 

mvn2 --version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_26
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: es_ES, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.8" arch: "x86_64" Family: "mac"

mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
(etc)


> Generic Interface is not generated correctly
> --------------------------------------------
>
>                 Key: MGWT-186
>                 URL: https://jira.codehaus.org/browse/MGWT-186
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Ubuntu 9.10, JDK 1.6
>            Reporter: Phuong Nguyen
>            Assignee: Robert Scholte
>             Fix For: 2.1.0
>
>         Attachments: MGWT-186.patch
>
>
> I have these 3 interface:
> public interface GenericDao<TEntity, TKey> {
>       public List<TEntity> getAll();
>       public TEntity findById(TKey key);
>       public TEntity persist(TEntity entity);
>       public TEntity[] persist(TEntity[] entities);
>       public void delete(TEntity entity);
> }
> public interface SubjectDao extends GenericDao<Subject, Long> {
>       public List<Subject> getEnabledSubjects();
> }
> public interface SubjectService extends RemoteService, SubjectDao {
>       
> }
> Here is the generated Asynchronous version:
> public interface SubjectServiceAsync
> {
>     void getEnabledSubjects( AsyncCallback<java.util.List> callback );
>     void delete( java.lang.Object p0, AsyncCallback<Void> callback );
>     void getAll( AsyncCallback<java.util.List> callback );
>     void findById( java.lang.Object p0, AsyncCallback<java.lang.Object> 
> callback );
>     void persist( java.lang.Object p0, AsyncCallback<java.lang.Object> 
> callback );
>     void persist( java.lang.Object[] p0, AsyncCallback<java.lang.Object[]> 
> callback );
> }
> Though, it should be
> public interface SubjectServiceAsync
> {
>     void getEnabledSubjects( AsyncCallback<java.util.List<Subject>> callback 
> );
>     void delete( Subject p0, AsyncCallback<Void> callback );
>     void getAll( AsyncCallback<java.util.List<Subject>> callback );
>     void findById( Long p0, AsyncCallback<Subject> callback );
>     void persist( Subject p0, AsyncCallback<Subject> callback );
>     void persist( Subject[] p0, AsyncCallback<Subject[]> callback );
> }

--
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