polymorphism is still broken in 2.4 RC1

88 views
Skip to first unread message

Y2i

unread,
Aug 16, 2011, 4:37:35 PM8/16/11
to google-we...@googlegroups.com
Found another issue with 2.4 RC1.  It seems that polymorphism is still broken.

interface A extends EntityProxy { ... }
interface B extends A { ... }
interface C extends A { ... }
interface D {
  A getA();
}

interface S extends RequestContext {
  RequestContext<List<D>> queryDs();
}

The service is called correctly, and returns the correct results, but the client fails when it receives a response:
generated class:  SImpl(AbstractRequestContext).createProxy(Class<T>, SimpleProxyId<T>) line: 489
failing method:    public <T extends BaseProxy> AutoBean<T> createProxy(Class<T> clazz, SimpleProxyId<T> id)
Line 489:  throw new IllegalArgumentException("Unknown proxy type " + clazz.getName());
Messages:  "Unknown proxy type B", "Unknown proxy type C"

Note that this code worked fine in GWT 2.2.

Y2i

unread,
Aug 16, 2011, 4:41:09 PM8/16/11
to google-we...@googlegroups.com

Jens

unread,
Aug 16, 2011, 6:51:06 PM8/16/11
to google-we...@googlegroups.com
Just tried it and it works for me in 2.4 RC 1.

Make sure you have @ProxyFor annotations on all proxy interfaces or use @ExtraType annotation.

Y2i

unread,
Aug 17, 2011, 12:57:39 AM8/17/11
to google-we...@googlegroups.com
Thanks so much, I really appreciate you pointing out @ExtraType attribute.  It solved all my migration problems.
Reply all
Reply to author
Forward
0 new messages