Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368642 - EGL record wizard from the JSON file results in the overflow of int type
Summary: EGL record wizard from the JSON file results in the overflow of int type
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhi Zhu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 02:24 EST by pf yu CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pf yu CLA 2012-01-16 02:24:31 EST
Build Identifier: 0.7.0 all in one

If a JSON file contains string like this:

{ "people": [
  { "id": 1234567890123, "lastName":"McLaughlin", "email": "aaaa" }
  ]} 
  
When new an EGL record using the json string above, the type of the id will be "int", which is incorrect because the value is overflow:
Record fdsafdsa
	people People[];
end

Record People
	id int;
	lastName string;
	email string;
end


We need a mechanism  to automatically recognize the type of field in the json string.
This problem exists in both RBD and EDT.

Reproducible: Always

Steps to Reproduce:
If a JSON file contains string like this:

{ "people": [
  { "id": 1234567890123, "lastName":"McLaughlin", "email": "aaaa" }
  ]} 
  
When new an EGL record using the json string above, the type of the id will be "int", which is incorrect because the value is overflow:
Record fdsafdsa
	people People[];
end

Record People
	id int;
	lastName string;
	email string;
end


We need a mechanism  to automatically recognize the type of field in the json string.
This problem exists in both RBD and EDT.
Comment 1 Zhi Zhu CLA 2012-01-17 21:50:34 EST
The defect is not found by FVT and have little impact on EDT, so delay it for future fix
Comment 2 Zhi Zhu CLA 2012-03-29 04:46:58 EDT
discuss with Thomas, he agrees to defer this