By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,673 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,673 IT Pros & Developers. It's quick & easy.

netscape.javascript.JSException is never thrown in body of corresponding tr

100+
P: 168
I have the following try/catch block:


try
{
netscape.javascript.JSObject.getWindow(this.applet ).eval("ClkExcept(" + nId.toString() + ")");
}catch(netscape.javascript.JSException e){}



Which, for as long as I have compiled (until recently) compiled fine. However, when I recently had to recompile the classes containing this code because of an unrelated issue, I now get a message from the compiler stating that exception netscape.javascript.JSException is never thrown in body of corresponding try statement. I am attempting to use the latest 1.3.1_XX SDK (I must compile with some build of 1.3.1), but have run into this compiler message with all builds of 1.3.1 that I have tried. All documentation I can locate for the netscape.javascript.JSObject class states that the GetWindow() function can throw an exception of type netscape.javascript.JSException.

Has anyone seen this before, or does anyone have any suggestions on how to get the compiler working correctly?
Feb 19 '07 #1
Share this Question
Share on Google+
1 Reply

10K+
P: 13,262
I have the following try/catch block:


try
{
netscape.javascript.JSObject.getWindow(this.applet ).eval("ClkExcept(" + nId.toString() + ")");
}catch(netscape.javascript.JSException e){}



Which, for as long as I have compiled (until recently) compiled fine. However, when I recently had to recompile the classes containing this code because of an unrelated issue, I now get a message from the compiler stating that exception netscape.javascript.JSException is never thrown in body of corresponding try statement. I am attempting to use the latest 1.3.1_XX SDK (I must compile with some build of 1.3.1), but have run into this compiler message with all builds of 1.3.1 that I have tried. All documentation I can locate for the netscape.javascript.JSObject class states that the GetWindow() function can throw an exception of type netscape.javascript.JSException.

Has anyone seen this before, or does anyone have any suggestions on how to get the compiler working correctly?
How about discussing this in the Javascript forum instead?
Feb 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.