On Tuesday, February 8, 2011 3:34:19 PM UTC+1, Eric Andresen wrote:
>
> I see the same error message when inheriting from a generic class or
> implementing an interface that uses generics. I don't see any documentation
> forbidding that either. In the example below it works just fine if I
> comment out the "implements ObjectWithException<MyObject>" code, but throws
> an error if I leave it in.
>
> Interface:
>
> public interface ObjectWithException<T>
> {
> public MyException getException ();
> public void setException (MyException exception);
> public T getDomainObject ();
> public void setDomainObject (T object);
> }
>
> Class:
>
> public class MyObjectWithException implements ObjectWithException<MyObject>
> {
> ...
> public MyObject getDomainObject () { return object; }
> public void setDomainObject (MyObject object) { this.object = object; }
> }
>
>
> SEVERE: Method overloads found in type
> com.mypackage.gwt.server.MyObjectWithException named setDomainObject:
> void setDomainObject(java.lang.Object )
> void setDomainObject(com.mypackage.domain.MyObject )
>
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5926
<http://code.google.com/p/google-web-toolkit/issues/detail?id=5926>(I'm
bypassing the RequestFactoryInterfaceValidator for other reasons, so I
didn't see this error)
--
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.