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

Bug 361766

Summary: An error occurred while creating an object of the java.lang.ExceptionInInitializerError type
Product: z_Archived Reporter: Tom B <tmbarans>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack trace for "An error occurred while creating an object of the java.lang.ExceptionInInitializerError type" none

Description Tom B CLA 2011-10-23 22:58:34 EDT
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
Comment 1 Tom B CLA 2011-10-23 23:01:45 EDT
Created attachment 205777 [details]
Stack trace for "An error occurred while creating an object of the java.lang.ExceptionInInitializerError type"
Comment 2 Jeff Douglas CLA 2011-10-27 16:44:21 EDT
fixed
Comment 3 Tom B CLA 2011-10-31 01:57:02 EDT
verified for EGL Development Tools (EDT) 0.7.0.v201110302101
Comment 4 Tom B CLA 2011-10-31 02:03:51 EDT
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
Comment 5 Jeff Douglas CLA 2011-11-10 09:39:09 EST
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.
Comment 6 Lisa Lasher CLA 2011-11-11 18:09:14 EST
closing the defect