On Fri, May 22, 2015 at 12:22 PM, Jens <[email protected]> wrote:

> Seems to look good. Seems pretty similar to the single @Js annotation
> version but reads better because of separate
> @JsMethod/@JsProperty/@JsConstrutor annotations and gives the possibility
> to add specific attributes to just one of them if ever needed.
>
> Two short questions:
>
> - JsConstrutor does not have a name attribute so maybe its worth
> documenting that you can not use JavaScript reserved words as (yes, ugly
> lower case) class names when @JsConstructor(export = true) is used?
>
>
We will have a check for this but I agree it is a good idea to document
this in javadoc.


> - Currently name and export attributes are repeated through
> @JsType/Constructor/Method/Property. Is there any reason why @JsNamespace
> stands alone? For consistency I would probably convert @JsNamespace into an
> attribute as well, especially if @JsNamespace can be used with all four
> annotations.
>
>
>
Export and name attributes are always valid to set while namespace can be
set on only static members. Also we need it so that we could set the
namespace on package-info file.

An alternative solution would be introducing JsPackage annotation to use
with package-info file and introduce namespace attribute where applicable.
That would be more consistent with the rest.


> -- J.
>
> --
> 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/bf832bd5-ae11-45eb-9421-bc73d5aff1a2%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/bf832bd5-ae11-45eb-9421-bc73d5aff1a2%40googlegroups.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%3DyUA3ubPeu-dZas3rs%2BtDnnVFeTRvXJur2BK2OciY9CbeMtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to