[
http://www.stripesframework.org/jira/browse/STS-651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Remi VANKEISBELCK updated STS-651:
----------------------------------
Description:
When binding an invalid Date (e.g. 'notadate') as a key to a Map<Date,Date>
property of an action bean, the TypeConverter fails to convert, but errors are
'ignored', and a String object is added as akey of the map. This violates the
map's invariant, and generates a ClassCastException.
checked in unit test that reproduces in r.1053 :
net.sourceforge.stripes.controller.InvalidDateKeyBreaksInvariant_STS_651#bindInvalidDateKeysInMapBreaksMapInvariant
The @Test annotation is currently commented out, in order to avoide breaking
the build.
was:
When binding an invalid Date (e.g. 'notadate') as a key to a Map<Date,Date>
property of an action bean, the TypeConverter fails to convert, but errors are
'ignored', and a String object is added as akey of the map. This violates the
map's invariant, and generates a ClassCastException.
Affects Version/s: Release 1.6
> binding invalid Date as a key to Map<Date,Date> breaks the map invariant
> ------------------------------------------------------------------------
>
> Key: STS-651
> URL: http://www.stripesframework.org/jira/browse/STS-651
> Project: Stripes
> Issue Type: Bug
> Affects Versions: Release 1.5.1, Release 1.6
> Reporter: Remi VANKEISBELCK
>
> When binding an invalid Date (e.g. 'notadate') as a key to a Map<Date,Date>
> property of an action bean, the TypeConverter fails to convert, but errors
> are 'ignored', and a String object is added as akey of the map. This violates
> the map's invariant, and generates a ClassCastException.
> checked in unit test that reproduces in r.1053 :
> net.sourceforge.stripes.controller.InvalidDateKeyBreaksInvariant_STS_651#bindInvalidDateKeysInMapBreaksMapInvariant
> The @Test annotation is currently commented out, in order to avoide breaking
> the build.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development