Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358197

Summary: EDT should report error when trying to convert date to bigint
Product: z_Archived Reporter: Huo Zhen Zhong <huozz>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Huo Zhen Zhong CLA 2011-09-20 04:21:03 EDT
Build Identifier: 2011-09-20

a_bigint = a_date;

Reproducible: Always
Comment 1 Huo Zhen Zhong CLA 2011-09-20 04:39:25 EDT
The same problem for below cases:

a_bigint bigint;
a_boolean boolean;
a_date date;
a_decimal decimal?;
a_decimal2 decimal(10);
a_float float;
a_int int;
a_number number?;
a_smallfloat smallfloat;
a_smallint smallint;
a_string string;


a_boolean = a_decimal;
a_boolean = a_decimal2;
a_boolean = a_number;

a_date = a_bigint;
a_date = a_decimal;
a_date = a_decimal2;
a_date = a_float;
a_date = a_int;
a_date = a_number;
a_date = a_smallfloat;
a_date = a_smallint;
a_date = a_string;
a_date = a_smallint;

a_decimal = a_boolean;
a_decimal = a_date;

a_decimal2 = a_boolean;
a_decimal2 = a_date;

a_float = a_date;

a_int = a_date;

a_number = a_boolean;
a_number = a_date;

a_smallfloat = a_date;

a_smallint = a_date;
Comment 2 Paul Harmon CLA 2011-10-18 14:50:11 EDT
This has been corrected in validation (TypeCompatibilityUtil)
Comment 3 Huo Zhen Zhong CLA 2011-10-19 23:32:42 EDT
verified in 0.7.0.v20111019