You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2008/02/13 16:11:09 UTC

[jira] Created: (HARMONY-5506) [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end

[classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end
-----------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-5506
                 URL: https://issues.apache.org/jira/browse/HARMONY-5506
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Sean Qiu


When the calculated parameter string contains writeblanks in the end, valueOf of the java.sql.Timestamp will throw IllegalArgumentException.

The test case is as following:

        String date = "1970-01-01 22:17:59.0                 ";
        Timestamp t = Timestamp.valueOf(date);



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-5506) [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-5506:
------------------------------------

    Assignee: Tim Ellison

> [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5506
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5506
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Sean Qiu
>            Assignee: Tim Ellison
>         Attachments: Harmony-5506.diff
>
>
> When the calculated parameter string contains writeblanks in the end, valueOf of the java.sql.Timestamp will throw IllegalArgumentException.
> The test case is as following:
>         String date = "1970-01-01 22:17:59.0                 ";
>         Timestamp t = Timestamp.valueOf(date);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-5506) [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu updated HARMONY-5506:
------------------------------

    Attachment: Harmony-5506.diff

Could someone please try this patch please?Thanks 

> [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5506
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5506
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Sean Qiu
>         Attachments: Harmony-5506.diff
>
>
> When the calculated parameter string contains writeblanks in the end, valueOf of the java.sql.Timestamp will throw IllegalArgumentException.
> The test case is as following:
>         String date = "1970-01-01 22:17:59.0                 ";
>         Timestamp t = Timestamp.valueOf(date);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-5506) [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-5506.
----------------------------------

    Resolution: Fixed

Thanks Sean.

Patch applied to SQL module at repo revision r627486.

Please check it was applied as you expected.


> [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5506
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5506
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Sean Qiu
>            Assignee: Tim Ellison
>         Attachments: Harmony-5506.diff
>
>
> When the calculated parameter string contains writeblanks in the end, valueOf of the java.sql.Timestamp will throw IllegalArgumentException.
> The test case is as following:
>         String date = "1970-01-01 22:17:59.0                 ";
>         Timestamp t = Timestamp.valueOf(date);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-5506) [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu closed HARMONY-5506.
-----------------------------


Verified by Sean at r627486
Thanks, Tim.

> [classlib][sql] java.sql.Timestamp.valueOf will throw IllegalArgumentException when string parameter contains writeblank in the end
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5506
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5506
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Sean Qiu
>            Assignee: Tim Ellison
>         Attachments: Harmony-5506.diff
>
>
> When the calculated parameter string contains writeblanks in the end, valueOf of the java.sql.Timestamp will throw IllegalArgumentException.
> The test case is as following:
>         String date = "1970-01-01 22:17:59.0                 ";
>         Timestamp t = Timestamp.valueOf(date);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.