Good afternoon, dear GWT group members!

I've noticed that if I create an event handler, for example

ButtonItem btnSubmit = new ButtonItem();
btnSubmit.addClickHandler(new
com.smartgwt.client.widgets.form.fields.events.ClickHandler()
{
    @Override
    public void
onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent
event)
    {
      int i = 5/0;
    }
});

I can't see the problem in the Development Mode Panel in the Eclipse.
The last record there is "Module has been loaded". The application
itself behaves just as if nothing happened. You can try it by
yourself.

But if only I put "int i = 5/0;" after ButtonItem declaration, i.e.
not in inner class, the exception will be described in Development
Mode Panel.

Having this, it's very hard to catch errors... Can you advise anything
to me? Or is it a bug?


I use Eclipse 3.5 SR1, Google Plugin 1.2.0, GWT Toolkit SDK 2.0.1,
smartgwt 2.0, latest Firefox and Windows 7 x64 Ultimate.

Thank you very much in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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