You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Weck (JIRA)" <ji...@apache.org> on 2008/04/01 13:59:44 UTC

[jira] Created: (AXIS2-3687) Unicode character blocks are not correctly transformed to java code "\p{Is...}"

Unicode character blocks are not correctly transformed to java code "\p{Is...}"
-------------------------------------------------------------------------------

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


Do you have (e.g.) the following type-definition in a webservice:
<xs:element name="XY">
    <xs:simpleType>
      <xs:restriction base="xs:string">
        <xs:maxLength value="50"/>
        <xs:minLength value="1"/>
        <xs:pattern value="[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+"/>
      </xs:restriction>
    </xs:simpleType>
</xs:element>
 
This generates a line class ( with wsdl2java) with the method:
        if (java.lang.String.valueOf(param).matches("[\\p{IsBasicLatin}\\p{IsLatin-1Supplement}]+")) {

The Problem is:
Unicode character blocks are matched by "\p{Is...}" in the XML Schema but Java expects "\p{In...}"


-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org