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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]