Community
Participate
Working Groups
Build Identifier: 201109282102 EDT throws runtime exception in the date testing: Multiple markers at this line - IWN.JavaGen.9999.e 12/207 Stack Trace: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError - IWN.JavaGen.9998.e 12/207 Exception occurred: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError Please confirm if it is working by design in EDT, if not, please fix the issue. Reproducible: Always Steps to Reproduce: 1.Create a EDT basic project "abc". 2.Copy the attachment "DateTest.egl" to the project. 3.Turn on the Java Generator, and see the compile errors.
Created attachment 204253 [details] egl file for the date testing
The error occurs on the following line: diff int = date1 - date2;
This is being marked as critical because a lot of test cases will use the '-' operator for date and timestamp.
This is not allowed in EDT. You will need to use the new daysDifferent() function that is defined for Date for this: diff int = date1.daysDifferent(date2); I am changing validation for this: changes committed to TypeCompatibilityUtil
Verified in build 201110110900