Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359354 - HTML Error Generator is missed
Summary: HTML Error Generator is missed
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Huo Zhen Zhong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 03:33 EDT by Huo Zhen Zhong CLA
Modified: 2017-02-23 14:18 EST (History)
3 users (show)

See Also:


Attachments
The sample project. (11.63 KB, multipart/x-zip)
2011-10-09 04:33 EDT, fahua jin CLA
no flags Details
The sample project for rbd. (49.14 KB, multipart/x-zip)
2011-10-09 04:34 EDT, fahua jin CLA
no flags Details
fix (31.65 KB, patch)
2011-10-27 05:10 EDT, Huo Zhen Zhong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Huo Zhen Zhong CLA 2011-09-29 03:33:19 EDT
Build Identifier: 2011-09-29

when compile and generator error occurs, VE should show error info.

Reproducible: Always
Comment 1 fahua jin CLA 2011-10-09 04:32:29 EDT
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;
Comment 2 fahua jin CLA 2011-10-09 04:33:09 EDT
Created attachment 204822 [details]
The sample project.
Comment 3 fahua jin CLA 2011-10-09 04:34:16 EDT
Created attachment 204823 [details]
The sample project for rbd.
Comment 4 fahua jin CLA 2011-10-09 04:34:59 EDT
I also attached the sample project for RBD, you can have a reference for how RBD produce the error information.
Comment 5 fahua jin CLA 2011-10-13 23:20:04 EDT
(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.
Comment 6 Huo Zhen Zhong CLA 2011-10-27 05:10:03 EDT
Created attachment 206060 [details]
fix
Comment 7 Huo Zhen Zhong CLA 2011-10-27 05:13:13 EDT
The fix passed most of the scenarios except a minor defect in scenario 1. The defect is traced in 362168, so resolve this one.
Comment 8 Huo Zhen Zhong CLA 2011-11-04 02:53:52 EDT
verified on 0.7.0.v201111030901