0

我看到 JavaScript 异常没有被抛出到示例 SmartGWT 应用程序的浏览器。但是普通的 GWT 应用程序也会抛出同样的问题。

我所做的只是创建了一个 GWT 测试应用程序并制作了一个引发空指针异常的场景。Firefox/Chrome/IE 在浏览器控制台中抛出异常。

例如,

Label testLabel = null;
testLabel.setText("Welcome")

使用同一个应用程序,我创建了 SmartGWT 小部件并创建了一个引发空指针异常的场景,但该异常并未引发到浏览器控制台。

例如,

com.smartgwt.client.widgets.Window testWindow = null;
testWindow.setTitle("Welcome....");

我的假设是任何未捕获的异常都应该交给浏览器。想知道是否有人知道有关它的更多详细信息?

4

1 回答 1

0

如果您使用的是 2.4 以下的版本。它在 2.4 中已修复

是的 .. 这种 woohaa 行为存在但已修复。

This has been resolved for a while now on mainline. Please try the latest nighty build from http://smartclient.com/builds

The fix will be in the soon to be released Smart GWT 2.4.

参考

http://code.google.com/p/smartgwt/issues/detail?id=533

于 2013-02-01T21:36:26.643 回答