Hi,

I have created a simple Generator that I wish to use to create
implementations of interfaces.

Eg I have client code that look like:

                GwtPojo u = GWT.create( GwtPojo.class );
                User us = GWT.create( User.class );

where GwtPojo is an abstract class and User is an interface. But I get
the following error when compiling:

   [ERROR] Line 59:  Rebind result
'dk.gameportal.backend.pojo.GwtPojo' cannot be abstract
   [ERROR] Line 60:  Rebind result 'dk.gameportal.backend.pojo.User'
must be a class

The generator is quite simple and work for normal classes, eg my
compilation is succesful when GwtPojo or User is a non abstract class.
The generator currentlyjust creates a class without any methods or
fields which derives from java.lang.Object.

I don't understand why GWT.create does not work for interfaces. For
instance it is used to generate async version of remote services and
there you also pass GWT.create an class instance of an interface.

Best Regards
Niels
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to