Hi LoneWolf,
The reason why you're getting these warning messages is because the
@gwt.typeArgs doesn't apply to the method public UsersList loadUsers(int
start) since the UsersList type itself is a serializable type.
Simply remove the @gwt.typeArgs annotation and you should no longer get any
warning messages regarding non-generic types being parametrized.
Also note that in GWT 1.5, we're now supporting Java 5 annotations as well
as generics, therefore you no longer need to use the special Javadoc style
@gwt.typeArgs annotation and can instead use the real @gwt.typeArgs
annotation in code when appropriate.
Hope that helps,
-Sumit Chandel
On Tue, Dec 2, 2008 at 5:01 AM, LoneWolf <[EMAIL PROTECTED]> wrote:
>
> Hey,
> I want to upgrade my GWT application from GWT 1.4.6 to GWT 1.5.3
> What I'm facing is this warning:
> ++++
> [WARN] 'mydomain.UsersList' is not a generic type; only generic types
> can be parameterized
> com.google.gwt.core.ext.typeinfo.BadTypeArgsException:
> 'mydomain.UsersList' is not a generic type; only generic types can be
> parameterized
> ++++
> Here is my code:
>
> ++++
> //In the RPC interface
> /**
> * * @gwt.typeArgs <mydomain.Users>
> */
> public UsersList loadUsers(int start);
>
> public class UsersList implements IsSerializable {
> private List<Users> users;
> ++++
>
> Would you please tell me how to overcome this?
> Thanks for your time.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---