Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363669 - TypeCastException not being thrown for some invalid dates
Summary: TypeCastException not being thrown for some invalid dates
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 00:12 EST by Tom B CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom B CLA 2011-11-14 00:12:53 EST
Build Identifier: Eclipse 20110916-0149 EDT 0.7.0.v201111132101

A TypeCastException is not being thrown when assigning the string "12345678" to a date. This exception is thrown for java but not for javascript.

Reproducible: Always

Steps to Reproduce:
1. Generate EDate009.egl to javascript
2. Run the generated program. There should be an exception thrown for runInvalidAssignmentFunction02() but there isn't.
3. The exception is correctly thrown for java but not for javascript
Comment 1 Jing Qian CLA 2011-11-21 14:49:47 EST
fixed now, verified on 201111210901's build