[ 
http://jira.codehaus.org/browse/MGWT-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MGWT-186:
--------------------------------

    Attachment: MGWT-186.patch

Looks like I've been able to develop the required improvement for QDox. It's 
still a SNAPSHOT-version, so I can't apply the patch for this plugin yet.
@Phuong Nguyen: Could you try to apply this patch on a local version of the 
gwt-m-p and 'mvn install' it on your system. If you don't have a reference to 
the snapshot-repository of codehaus, you'll have to add this as well. Check 
[using-sandbox-plugins| http://mojo.codehaus.org/using-sandbox-plugins.html] to 
see how to add this repository.
Please, let me know it this solves the problem as expected.


> Generic Interface is not generated correctly
> --------------------------------------------
>
>                 Key: MGWT-186
>                 URL: http://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
>         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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to