Community
Participate
Working Groups
Build Identifier: EGL Development Tools (EDT) 0.7.0.v201110232102 When you declare a timestamp in the format MMdd as February 29, an exception is thrown which indicates "An error occurred while creating an object of the java.lang.ExceptionInInitializerError". This stack trace (attached) hides the error that you cannot declare a MMdd timestamp for February 29 because of the default year 0. In fact, the stack trace only mentions that it cannot be converted to the type timestamp, and this message appears only after the error regarding the creation of the java.lang.ExceptionInInitializerError type. The timestamp error should be just a single line rather than a whole stack trace Reproducible: Always Steps to Reproduce: 1. declare a timestamp like this: const febLeapTimeStampMDDate timeStamp("MMdd") = "0229"; 2. generate java EGL Test Driver 3. Run the generated java program see EGLDate007.egl in org.eclipse.edt.eunit.test/api.eglx_lang an exception like the one attached will be thrown
Created attachment 205777 [details] Stack trace for "An error occurred while creating an object of the java.lang.ExceptionInInitializerError type"
fixed
verified for EGL Development Tools (EDT) 0.7.0.v201110302101
The stack trace is gone but now there is no error at all when there should be, as the default date is still zero (as far as I know) so you shouldn't be able to create the timestamp "0229". Found in EGL Development Tools (EDT) 0.7.0.v201110302101
We allow you to make a timestamp with only MM and DD parts, or any other subset. It isn't until it is tried to be used as a full timestamp that an error will be given. I am resolving this defect as invalid, because I believe there is nothing really wrong here.
closing the defect