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

jieryn commented on MGWT-186:
-----------------------------

Robert, I'm also hitting this issue so I've taken the time to apply your patch 
to HEAD (currently rev 12223). I hit the same issue where j.u.Collection is not 
generic in the generated Async class. This fails gwt:compile goal; I think this 
issue should be marked as critical.

I ran versions:lock-snapshots and see this as output:

{code}[INFO] Locked com.thoughtworks.qdox:qdox:jar:null:1.12-SNAPSHOT to 
version 1.12-20100502.091934-3
{code}

Since gwt-m-p compiles, I presume I at least have the changes you've made in 
QDOX-207 (around April) but perhaps something new has gotten in to prevent this 
from working properly?

I even wiped out both gwt-m-p and qdox from my .m2/repo and have the same 
result.

{code}$ mvn gwt:clean gwt:generateAsync gwt:compile
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building App :: GWT UI 0.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- gwt-maven-plugin:1.3-SNAPSHOT:clean (default-cli) @ gwt ---
[INFO] auto discovered modules [com.acme.app.gwt.Application]
[INFO] 
[INFO] --- gwt-maven-plugin:1.3-SNAPSHOT:generateAsync (default-cli) @ gwt ---
[INFO] using GWT jars from project dependencies : 2.1.0.M1
[INFO] 
[INFO] --- gwt-maven-plugin:1.3-SNAPSHOT:compile (default-cli) @ gwt ---
[INFO] using GWT jars from project dependencies : 2.1.0.M1
[INFO] auto discovered modules [com.acme.app.gwt.Application]
[INFO] establishing classpath list (scope = compile)
[INFO] Build is using IBM JDK, localWorkers set to 1 as workaround to gwt#4031
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module com.acme.app.gwt.Application
[INFO]    Validating newly compiled units
[INFO]       [ERROR] Errors in 
'file:/home/jesse/workspace/com.acme.app/gwt/src/main/java/com/acme/app/gwt/client/HistoryChangeHandler.java'
[INFO]          [ERROR] Line 89: The method 
getAllSvcDumpsByAbendCodeFuzzy(String, AsyncCallback<Collection>) in the type 
SvcDumpServiceAsync is not applicable for the arguments (String, 
AsyncCallback<Collection<SvcDumps>>)
[INFO]          [ERROR] Line 98: The method 
getAllSvcDumpsByCsectNameFuzzy(String, AsyncCallback<Collection>) in the type 
SvcDumpServiceAsync is not applicable for the arguments (String, 
AsyncCallback<Collection<SvcDumps>>)
[INFO]          [ERROR] Line 106: The method 
getAllSvcDumpsByDataSetNameFuzzy(String, AsyncCallback<Collection>) in the type 
SvcDumpServiceAsync is not applicable for the arguments (String, 
AsyncCallback<Collection<SvcDumps>>)
[INFO]    Finding entry point classes
[INFO]       [ERROR] Unable to find type 'com.acme.app.gwt.client.Application'
[INFO]          [ERROR] Hint: Previous compiler errors may have made this type 
unavailable
[INFO]          [ERROR] Hint: Check the inheritance chain from your module; it 
may not be inheriting a required module or a module may not be adding its 
source path entries properly
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.379s
[INFO] Finished at: Sat May 22 09:39:00 EDT 2010
[INFO] Final Memory: 8M/31M
[INFO] ------------------------------------------------------------------------
{code}

> 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