This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139868 - Validation in Date Filed custom property editor should be more smart
Summary: Validation in Date Filed custom property editor should be more smart
Status: REOPENED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 12:58 UTC by Ivan Sidorkin
Modified: 2008-10-14 10:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2008-07-14 12:58:27 UTC
Product Version: NetBeans IDE Dev (Build 200807100006)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

for example date "11.00.2sdfdf" marked as valid

IMO validator should check date field at least for letters, and also good to have validation for wrong dates like
"35.15.2008"
Comment 1 Andrew Korostelev 2008-07-23 15:37:32 UTC
date formatting Lenient is set to false. So dates like 35.15.2008 will not be parsed any more.
Check for extra characters at the and of the string is added. "11.00.2sdfdf" should not be parsed too 
(By default only beginning of the string is parsed. And not necessary chars at the end are ignored).

Comment 2 Andrew Korostelev 2008-07-24 09:24:23 UTC
http://hg.netbeans.org/main/rev/436a6a2cd0a2
fixed in main trunk
Comment 3 Ivan Sidorkin 2008-07-26 20:41:43 UTC
looks much better now

but if you show error message like 'Date must be in following format: dd.MM.yyyy'
may be you should decline any other versions if it possible.
I can type this date and it accepted : '3.1.200112532'