harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-502) SimpleDateFormat doesn't parse hours/minutes/seconds prefixed by spaces
Date Wed, 24 May 2006 16:29:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-502?page=all ]

Mark Hindess updated HARMONY-502:

    Attachment: simpledateformat.with.space.diff

Patch with tests and fix.

While trying to come up with a fix, I first thought that only spaces would be allowed (and
yes multiple spaces do seem to be accepted).  But I think noticed that tabs we permitted.
 I then tested other whitespace - none of which was accepted.  Since I'd done this I also
included the negative tests for the invalid whitespace for completeness.

> SimpleDateFormat doesn't parse hours/minutes/seconds prefixed by spaces
> -----------------------------------------------------------------------
>          Key: HARMONY-502
>          URL: http://issues.apache.org/jira/browse/HARMONY-502
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Priority: Minor
>  Attachments: simpledateformat.with.space.diff
> Given the format "HH:mm:ss", the RI accepts strings like "<space>9:08:07", "9:<space>8:07",
"9:08:<space>7", "<tab>9:08:07", etc.  Harmony doesn't parse these correctly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message