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 "Barend Garvelink (JIRA)" <ax...@ws.apache.org> on 2006/02/09 16:05:00 UTC

[jira] Updated: (AXIS-2400) WSDL2Java : Enumerated Types : IllegalArgumentExceptions

     [ http://issues.apache.org/jira/browse/AXIS-2400?page=all ]

Barend Garvelink updated AXIS-2400:
-----------------------------------

    Attachment: JavaEnumTypeWriter.pacth

Attached patch file.

> WSDL2Java : Enumerated Types : IllegalArgumentExceptions
> --------------------------------------------------------
>
>          Key: AXIS-2400
>          URL: http://issues.apache.org/jira/browse/AXIS-2400
>      Project: Apache Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: 1.3
>     Reporter: Barend Garvelink
>  Attachments: JavaEnumTypeWriter.pacth
>
> The enumerated types generated by wsdl2java throw IllegalArgumentException() in their fromString() and fromValue() methods. This IllegalArgumentException does not carry a message string. This can be awkward when the code is run in an application server and you have only the server logs with which to diagnose a problem.
> The attached patch generates a simple text message into each IllegalArgumentException that gets thrown. The message contains the value that was used for input.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira