Community
Participate
Working Groups
Build Identifier: 0.7.0.v201110241434 Create a EGL Java program, and copy following code to the main function. ------------------------------------------------------------------------- strLib.defaultDateFormat = Constants.isoDateFormat; dateType date; syslib.writeStdout(dateType); dateType = "2011-10-10"; syslib.writeStdout(dateType); ------------------------------------------------------------------------- Below exception is thrown, MONTH java.lang.IllegalArgumentException: MONTH at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2316) at java.util.Calendar.updateTime(Calendar.java:2469) at java.util.Calendar.getTimeInMillis(Calendar.java:1088) at java.util.Calendar.getTime(Calendar.java:1061) at server.PrimitiveNotInitPrg.main(PrimitiveNotInitPrg.java:51) at org.eclipse.edt.javart.resources.RunUnitBase.start(RunUnitBase.java:244) at server.PrimitiveNotInitPrg.main(PrimitiveNotInitPrg.java:22) Reproducible: Always
This testcase is wrong. There is no default date format anymore, so the input to the date variable must be in the format mm/dd/yyyy where / is any separator character. The code legitimately throws an exception.
Verified in 0.7.0.v201110272101
Close the defect.