Try rolling back this CL and see if it fixes it (
https://critique.corp.google.com/#review/92873682/depot/google3/third_party/java_src/gwt/svn/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
)


On Mon, Jun 8, 2015 at 3:04 PM, Chris DiGiano <[email protected]> wrote:

> I'm having trouble referencing a JsType interface when running under
> superdevmode. I'm trying to pass the JsType as a class reference to a
> method that uses the class to coerce the results into the expected type:
>
>     myelement.getCustomStampedElement("dialog",
> PolymerDialog.class).open();
>
> Unfortunately, in superdevmode (and only in SDM) I get this error:
>
>     Uncaught ReferenceError:
> Lcom_google_ccc_groups_rosters_frontend_polymer_jstype_PolymerDialog_2_classLit_0_g$
> is not defined
>
> PolymerDialog is declared like this:
>
> @JsType
> public interface PolymerDialog {
>   void open();
> }
>
> and getCustomStampedElement is defined like this:
>
>     /**
>      * Returns the element specified in this custom element's template
> that matches the given id
>      * with the result coerced to a non-vanilla element type. Equivalent
> to Polymer's $ function.
>      *
>      * @see
>      *     <a href="
> https://www.polymer-project.org/1.0/docs/devguide/local-dom.html#node-finding
> ">
>      *     Polymer automatic node finding</a>
>      */
>     <T> T getCustomStampedElement(String id, Class<T> type);
>
> It appears that the PolymerDialog JsType is being left out of the list of
> class literals available in superdevmode. Is this a bug? Any ideas for
> workarounds?
>
> Chris DiGiano
>
>  --
> 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/9826758e-1b0f-4797-8902-738a1fade037%40googlegroups.com
> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/9826758e-1b0f-4797-8902-738a1fade037%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/CAPVRV7e%3DDigWWWfxi%3DeBt70zU-yMOYzQp2yFLxPo%2Bnq%2BnKfEJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to