How do you set a default?

I've got this problem (though only on a linux box, on windows its fine (!) 
).

My app.gwt.xml looks like this:

    <replace-with class="com.x.Normal">
        <when-type-is class=com.x.Abstract"/>
    </replace-with>    
    
    <replace-with class="com.x.NormalIE">
        <when-type-is class="com.x.Abstract"/>
        <any>
            <when-property-is name="user.agent" value="ie6" />
            <when-property-is name="user.agent" value="ie8" />
        </any>
    </replace-with>



On Wednesday, 28 October 2009 17:30:01 UTC, Thomas Broyer wrote:
>
>
>
> On 28 oct, 13:03, q2dm1 <[email protected]> wrote: 
> > Hi, 
> > 
> > I'm trying to instantiate an abstract class with GWT.create(), however 
> > the compiler tells me that rebind results can't be abstract. Is there 
> > an explanation for this? If rebind results can be interfaces, why not 
> > abstract classes? 
>
> You're missing a <generate-with> or <replace-with> deferred-binding 
> rule in your module(s) to generate/"redirect" to a non-abstract, 
> "default instantiable" class. 
> When no <generate-with> or <replace-with> rule match, GWT.create() 
> uses a "new TheClass()" as a last resort, so it has to be concrete 
> (non-abstract).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/uQZvqZyJk_0J.
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