Javascript Exceptions in SDM about classes not being defined

36 views
Skip to first unread message

Ali Akhtar

unread,
Feb 10, 2015, 1:16:19 AM2/10/15
to google-web-tool...@googlegroups.com
I'm using 2.8.0-SNAPSHOT, from https://github.com/manolo/gwt-snapshot/raw/master/

When I try to invoke the following method:

   public Clerk<D> setEvents(HasValue<?>... fields)
    {
        for (HasValue<?> f : fields)
        {
            f.addValueChangeHandler( e -> validate() );
        }
        return this;
    }

I get the following exception:

com.google.gwt.core.client.JavaScriptException: (ReferenceError) : Lcom_google_gwt_user_client_ui_HasValue_2_classLit_0_g$ is not defined

Any ideas what's going on here? The code compiles, I have the classes on classpath, but I still see that exception.

In fact, lately I've been getting a lot of these 'xxx_classLit_0_g$ not defined' exceptions in SDM. E.g:



It seems that using any random class in GWT can cause that exception to come up. Which doesn't make sense as I'm writing valid code that compiles. 

Am I doing something wrong, or is this a bug in the compiler?

Would greatly appreciate if any light can be shed on this.

Daniel Kurka

unread,
Feb 10, 2015, 2:58:21 AM2/10/15
to google-web-tool...@googlegroups.com
This looks like the same compiler bug we are currently investigating, for now you can clear your SDM cache (button on its page) and you should be able to continue.

--
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 google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/83b0b1f8-f8a7-4997-8426-62804e286adf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Ali Akhtar

unread,
Feb 10, 2015, 3:17:50 AM2/10/15
to google-web-tool...@googlegroups.com
Thanks a lot for the work around, Daniel. My sanity is saved.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Contributors" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit-contributors/RWSov9AilF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujirarjkVZiL-KXu735kWtSuiRQdMiQFVaWVwXgq75_AB5w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages