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 bu...@apache.org on 2003/10/06 16:20:40 UTC

DO NOT REPLY [Bug 23619] New: - enum fromValue() throws IllegalStateException instead of IllegalArgumentException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23619

enum fromValue() throws IllegalStateException instead of IllegalArgumentException

           Summary: enum fromValue() throws IllegalStateException instead of
                    IllegalArgumentException
           Product: Axis
           Version: 1.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: ajbanck@informatica.com


enum types generated by Axis wsdl2java throw IllegalStateException in the 
fromValue() methods when an invalid value is specified.

JAX-RPC Spec 1.0 states:
// Gets enumeration with a specific value
// Required to throw java.lang.IllegalArgumentException if
// any invalid value is specified
public static <enumeration_name> fromValue(<base_type> value) {
... }