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 "Andrei Stefan (Created) (JIRA)" <ji...@apache.org> on 2011/10/03 19:37:33 UTC
[jira] [Created] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
--------------------------------------------------------------------------------
Key: AXIS2-5159
URL: https://issues.apache.org/jira/browse/AXIS2-5159
Project: Axis2
Issue Type: Bug
Components: adb, codegen
Affects Versions: 1.6.1, 1.5.6, 1.4.1, 1.6.2, 1.7.0, nightly
Environment: Windows Vista, Eclipse 3.6.1
Reporter: Andrei Stefan
Considering the wsdl attached to this JIRA issue, for the following snippet:
<element name="withdraw">
<simpleType name="TNDataType">
<xsd:restriction base="string">
<xsd:minLength value="0" />
<xsd:maxLength value="12" />
<xsd:pattern value="[0-9]*" />
</xsd:restriction>
</simpleType>
</element>
this is the output generated in the BankServiceStub class:
/**
* Auto generated setter method
* @param param TNDataType
*/
public void setTNDataType(java.lang.String param){
if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
this.localTNDataType=param;
}
else {
throw new java.lang.RuntimeException();
}
}
I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Shameera Rathnayaka (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shameera Rathnayaka updated AXIS2-5159:
---------------------------------------
Attachment: AXIS2-5159.patch
Hi Andrei Stefan and devs,
This is because even javaBeanWriter pass a pattern and xxxLenFacets values to the XSLTUtil as attributes, in the ADBBeanTemplate it first check for pattern. If there is a pattern attribute then it doesn't check for other attributes. By using pattern value it generates stub setter method. i was able to fix this for the trunk(1.7.0) you can find patch with this.
Please review and commit to the trunk.
FYI :
issues https://issues.apache.org/jira/browse/AXIS2-4555 and https://issues.apache.org/jira/browse/AXIS2-3237 already have fixed
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Resolved] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Amila Chinthaka Suriarachchi (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-5159.
-------------------------------------------------
Resolution: Fixed
applied the patch revision 1182813
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Priority: Critical
> Labels: patch
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Andrei Stefan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Stefan updated AXIS2-5159:
---------------------------------
Labels: patch (was: )
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Priority: Critical
> Labels: patch
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Andrei Stefan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125681#comment-13125681 ]
Andrei Stefan commented on AXIS2-5159:
--------------------------------------
Hi Shameera,
I have tested your patch and can confirm it is fixing the issue reported. Hopefully, it will get in the source code as an official commit from AXIS2 contributors.
Thanks.
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Priority: Critical
> Labels: patch
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Andrei Stefan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Stefan updated AXIS2-5159:
---------------------------------
Priority: Critical (was: Major)
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Priority: Critical
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Andrei Stefan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Stefan updated AXIS2-5159:
---------------------------------
Attachment: bank.wsdl
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Attachments: bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Andreas Veithen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated AXIS2-5159:
-----------------------------------
Priority: Major (was: Critical)
Affects Version/s: (was: 1.6.2)
(was: 1.7.0)
(was: nightly)
Fix Version/s: 1.7.0
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Labels: patch
> Fix For: 1.7.0
>
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5159) Wsdl2Java doesn't handle properly
multiple restrictions for a simpleType element
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126587#comment-13126587 ]
Hudson commented on AXIS2-5159:
-------------------------------
Integrated in Axis2 #1047 (See [https://builds.apache.org/job/Axis2/1047/])
applying the patch for AXIS2-5159
amilas :
Files :
* /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
* /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl
* /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/writer/JavaBeanWriter.java
> Wsdl2Java doesn't handle properly multiple restrictions for a simpleType element
> --------------------------------------------------------------------------------
>
> Key: AXIS2-5159
> URL: https://issues.apache.org/jira/browse/AXIS2-5159
> Project: Axis2
> Issue Type: Bug
> Components: adb, codegen
> Affects Versions: 1.4.1, 1.5.6, 1.6.1, 1.6.2, 1.7.0, nightly
> Environment: Windows Vista, Eclipse 3.6.1
> Reporter: Andrei Stefan
> Priority: Critical
> Labels: patch
> Attachments: AXIS2-5159.patch, bank.wsdl
>
>
> Considering the wsdl attached to this JIRA issue, for the following snippet:
> <element name="withdraw">
> <simpleType name="TNDataType">
> <xsd:restriction base="string">
> <xsd:minLength value="0" />
> <xsd:maxLength value="12" />
> <xsd:pattern value="[0-9]*" />
> </xsd:restriction>
> </simpleType>
> </element>
> this is the output generated in the BankServiceStub class:
> /**
> * Auto generated setter method
> * @param param TNDataType
> */
> public void setTNDataType(java.lang.String param){
>
> if (org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches("[0-9]*")) {
> this.localTNDataType=param;
> }
> else {
> throw new java.lang.RuntimeException();
> }
>
> }
> I've tested this further and the test cases don't, also, cover any combination of two restrictions used together for the same element. If I take out the pattern then the two restrictions for length are checked ok in the resulting code.
> There were previous reports related to the same issue (https://issues.apache.org/jira/browse/AXIS2-4555, https://issues.apache.org/jira/browse/AXIS2-4205, https://issues.apache.org/jira/browse/AXIS2-3237) but none seem to have fixed the issue reported above. Especially, https://issues.apache.org/jira/browse/AXIS2-4205, which is identical but there seems to be no commit associated with it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org