Community
Participate
Working Groups
Build Identifier: 2011-09-29 when compile and generator error occurs, VE should show error info. Reproducible: Always
Forest, You can test below scenarios after finish this work item. Please import the attached project to the workspace before taking following steps, Scenario 1: 1) Open SimpleDiv.js under WebContent folder, update the following line, //alert("hello"); to alert("hello); 2) Open the H1,egl, the expected result would be prompting the JS compile error. Scenario 2: 1) Modify the H1.egl to produce an EGL compilation error Scenario 3: 1) Modify the H1.egl to produce an EGL generation error - Code that is syntactically correct but is not supported by the JavaScript generator. Scenario 4: Insert code into a sampler handler to force some runtime issues to occur. For example, update the start() function, un-comment the following two lines. // aa int[]; // aa[9] = 3;
Created attachment 204822 [details] The sample project.
Created attachment 204823 [details] The sample project for rbd.
I also attached the sample project for RBD, you can have a reference for how RBD produce the error information.
(In reply to comment #1) > Forest, > > You can test below scenarios after finish this work item. > > Please import the attached project to the workspace before taking following > steps, > > Scenario 1: > 1) Open SimpleDiv.js under WebContent folder, update the following line, > //alert("hello"); to alert("hello); > 2) Open the H1,egl, the expected result would be prompting the JS compile > error. > > Scenario 2: > 1) Modify the H1.egl to produce an EGL compilation error > > Scenario 3: > 1) Modify the H1.egl to produce an EGL generation error - Code that is > syntactically correct but is not supported by the JavaScript generator. > > Scenario 4: > Insert code into a sampler handler to force some runtime issues to occur. For > example, update the start() function, un-comment the following two lines. > // aa int[]; > // aa[9] = 3; Add one more scenario: Scenario 5: An RUI handler refers to a record defined in a package not configured JSGen, it should have an error message displayed.
Created attachment 206060 [details] fix
The fix passed most of the scenarios except a minor defect in scenario 1. The defect is traced in 362168, so resolve this one.
verified on 0.7.0.v201111030901