Apache OpenOffice (AOO) Bugzilla – Issue 70215
Javascript Rhino debugger hides some runtime errors
Last modified: 2017-05-20 11:29:29 UTC
This is an example of runtime error which is not displayed if the script is run from the Rhino debugger: - in a document, create a new Javascript module. It is created with a Hello World example. - change the last instruction like this: xTextRange.setString( "Hello World (in JavaScript)", 1 ); - run the script from the debugger : no error message, but no Hello World written. - run the script from Tools > Macros : a runtime error message is displayed.
Jürgen, please find the right developer for this issue in the Scripting Framework
jsc -> ab: seems to be one for the scripting framework
Probably not many user affected -> P4, OOo later
The defect is reproduced on OOo V2.3.1 Intel Windows XP, Service Pack II. 1.Start up OOo writer with a new document 2.Click on Tools > Marcros > Organize Marcros > JavaScript 3.On the JavaScript Macros panel, click to select My Macros, and then click on Create… 4.In the Create Library window, type in a name to create a libary. ie. myTestLib, and click Ok. 5.Expand My Macros, and click to select the library, myTestLib, you just created. Click on Create… Enter a name for your JavaScript program, ie, myTestJS, and click Ok. 6.Next select the JS program that you just created, and click on Edit. 7.A “Hello World†sample program is displayed. You can either write your own testing JavaScript program or use it for this test. 8.Change the last instruction to: (as suggested by the reporter) xTextRange.setString( "Hello World (in JavaScript)", 1 ); 9.Click File > Save 10.Click File > Run [Observe that there’s no error message, nor there’s output] 11.Click File > Exit to get out of the Rhino Debugger. 12.Tools > Macros > Run Macros 13.Select the macro, ie, myTestJS.js, and click Run The following run time error message is displayed in a prompt. A Scripting Framework error occurred while running the JavaScript script myTestJS.js. Message: Can’t find method $Proxy31.setString(string,number). (<stdin>; line31) Further testing has been performed on another instruction in the test script, and the same problem happens.
Reset assigne to the default "issues@openoffice.apache.org".