java.lang.String.valueOf(param).matches()     work not with      
java.util.Calendar param 
------------------------------------------------------------------------------------------

                 Key: AXIS2-3688
                 URL: https://issues.apache.org/jira/browse/AXIS2-3688
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.3
            Reporter: Andreas Weck
            Priority: Minor


If you generate code with the follwoing XSD:
  <xs:element name="XY">
    <xs:simpleType>
      <xs:restriction base="xs:dateTime">
        <xs:minInclusive value="1940-01-01T00:00:00+01:00"/>
        <xs:maxInclusive value="2099-12-31T23:59:59.999+01:00"/>
        <xs:pattern value=".+\+02:00"/>
        <xs:pattern value=".+\+01:00"/>
        <xs:pattern value=".+\+00:00"/>
        <xs:pattern value=".+Z"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>

you will have a class with the method:
public void setXY_type0(java.util.Calendar param) {
  if (java.lang.String.valueOf(param).matches(".+Z")) {
    this.XY_type0 = param;
  } else {
     throw new java.lang.RuntimeException();
  }
}

The Problem:
The return value of java.lang.String.valueOf(param).matches(".+Z")  never can 
be true!!! Because the param is of the type java.util.Calendar.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to