axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Weck (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3687) Unicode character blocks are not correctly transformed to java code "\p{Is...}"
Date Tue, 01 Apr 2008 11:59:44 GMT
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


Mime
View raw message