You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/05/24 18:29:30 UTC

[jira] Updated: (HARMONY-502) SimpleDateFormat doesn't parse hours/minutes/seconds prefixed by spaces

     [ 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira