axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Resolved: (AXIS-1017) org.apache.axis.types.Duration
Date Sat, 27 Nov 2004 21:14:25 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1017?page=history ]
     
Davanum Srinivas resolved AXIS-1017:
------------------------------------

     Assign To:     (was: Axis Developers Mailing List)
    Resolution: Fixed

Applied patch.

thanks,
dims

> org.apache.axis.types.Duration
> ------------------------------
>
>          Key: AXIS-1017
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1017
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.1
>  Environment: Operating System: All
> Platform: All
>     Reporter: Miko PIetilä
>  Attachments: patch-AXIS-1017.tar.gz
>
> This class does not seem to fulfill the specs define in 
> http://www.w3.org/TR/xmlschema-2/#duration. For example, following are not 
> true: P-1347M is not allowed although -P1347M is allowed. P1Y2MT is not 
> allowed. (Integer.parseInt() allows also negative values). For me the solution 
> seems to be, that first check the minus in the beginning for isNegative and 
> then search for it in rest of the string [if there is one, throw an exception].
> Also just using P works (resulting zero), which should not.
> It would be also very useful to have getter for epoch or Date/Calendar, which 
> can be used instead of constructing the duration 'by hand'.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message