Wednesday, May 29, 2013

Re: Compiling Error (not Present in Eclipse) with Generics (requestfactory related interface)

Thanks yet again Thomas. 

Although I don't extend RequestContext there directly it does interact with it so that I have some interfaces extending both RequestContext and this interface which maybe causing the issue. So I think you're right. I added my post to the issue, hopefully it helps. I guess I can just take the long way for now.

On Wednesday, May 29, 2013 4:58:53 PM UTC+2, Thomas Broyer wrote:

On Tuesday, May 28, 2013 7:54:29 PM UTC+2, GWTter wrote:
Hi all,

I can't figure this out, haven't found anything on the interwebs, and it's really, really getting to me. I have the following interface:

public interface PersistedClassRC<P extends EntityProxy, N extends Serializable> {
Request<P> save(P entityProxy,int version);
Request<Void> delete(P entityProxy);
Request<P> findById(N id);

Now in Eclipse there are no errors, no warnings and I can run in Devmode just fine. However when I compile it I get the following error:

.../ error: The type N cannot be used here
    [javac]     Request<P> findById(N id);

I'm using Java 1.6.0_30 but have also tried it on 1.7.0_05 and 1.7.0_21 and all yield the same error. Is there something I'm not seeing, is this illegal? Please any help would be greatly appreciated, thanks in advance.

Looks like issue 6794 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment