Works as intended.

Any form of polymorphism is avoided in JsFunction design so that we could
generate a simple javascript function out of it:
https://gwt-review.googlesource.com/#/c/12810/

On Mon, May 23, 2016 at 10:50 PM, Manuel Carrasco Moñino <[email protected]>
wrote:

>
> Is there any reason why a Class implementing a JsFunction cannot be
> extended or it is a bug?
>
> In the @JsFunction documentation there is nothing about this constrain.
>
> @JsFunction
> interface I {
>   void call(...);
> }
> class A implements I {...}
> class B extends A {...}
>
> [ERROR] : 'A' cannot extend JsFunction implementation 'B'.
>
>
> Thanks
> - Manolo
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM28XAuQi8iTbWcgUcMLSHOgYKbQqNOhwMAG-tLJFtZkTEqpig%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM28XAuQi8iTbWcgUcMLSHOgYKbQqNOhwMAG-tLJFtZkTEqpig%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA0%3DJCCedeNcM73ae9RYCMP0%3D_vtvwo9f0C2WT%3DyjQMA%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to