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

Bug 360840

Summary: Bad error on timeStamp definition
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-10-13 10:50:59 EDT
myTimeStamp timeStamp;	

Gives error:
IWN.VAL.3433.e 6/17 The type timeStamp is not instantiable. The reference to this type must be defined as nullable.

But when I add the ? and SysLib.writeStdout(myTimeStamp), I get:
A null value was used.
eglx.lang.NullValueException A null value was used

It's messing up a lot of my testcases.
Comment 1 Paul Harmon CLA 2011-10-13 11:44:52 EDT
According to the new language document (on the EDT wiki), Timestamp without a pattern is a reference type in EDT (much like how Decimal is a reference type if no length is specified). Because of this, there is no default value for Timestamp...so it is not intstantiable.


You will either need to code a pattern on the definition or make the field nullable.
Comment 2 Paul Harmon CLA 2011-10-13 11:46:40 EDT
You will probably want to change your definitions to Timestamp("yyyyMMddHHmmss"), as this was the previous default in EDT before I implmented the language change.
Comment 3 broy2 CLA 2011-10-13 15:09:02 EDT
Well, OK.