Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 81083 invoked from network); 4 Oct 2004 15:05:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 15:05:01 -0000 Received: (qmail 20492 invoked by uid 500); 4 Oct 2004 15:04:42 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 20382 invoked by uid 500); 4 Oct 2004 15:04:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 20310 invoked by uid 99); 4 Oct 2004 15:04:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 04 Oct 2004 08:04:38 -0700 Received: (qmail 4616 invoked from network); 4 Oct 2004 15:06:32 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 4 Oct 2004 15:06:32 -0000 Message-ID: <1449237063.1096902392145.JavaMail.apache@nagoya> Date: Mon, 4 Oct 2004 08:06:32 -0700 (PDT) From: axis-dev@ws.apache.org To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-1583) BeanDeserializerFactory incorrectly handles "JAX-RPC Enum" classes Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXIS-1583 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-1583 Summary: BeanDeserializerFactory incorrectly handles "JAX-RPC Enum" classes Type: Bug Status: Unassigned Priority: Critical Project: Axis Components: Serialization/Deserialization Versions: 1.1 Assignee: Reporter: John Major Created: Mon, 4 Oct 2004 8:05 AM Updated: Mon, 4 Oct 2004 8:05 AM Environment: Mandrake Linux 10.1 - JDK 1.4.2_04 Description: BeanDeserializerFactory is supposed to handle "JAX-RPC Enum" classes, according to this method that it uses in org.apache.axis.utils.JavaUtils: /** * Determine if the class is a JAX-RPC enum class. * An enumeration class is recognized by * a getValue() method, a toString() method, * a fromString(String) method * a fromValue(type) method and the lack * of a setValue(type) method */ public static boolean isEnumClass(Class cls) { (It would be helpful, BTW, if the javadoc included the necessary "static" specifiers in the method descriptions above.) It is recognizing my class correctly, and is apparently prepared to deserialize it after init'ing. BUT - this code in BeanDeserializerFactory: if (deserClass == EnumSerializer.class) { return super.getGeneralPurpose(mechanismType); } return new BeanDeserializer(javaType, xmlType, typeDesc, propertyMap); fails to treat my class as an enum class every time, because "deserClass" is actually EnumDeserializer. If I change it to: ^^ if (deserClass == EnumDeserializer.class) { the deserialization of the class works fine. I've pulled out the latest Axis CVS source, and the bug appears to still be there. So: - Is my diagnosis and fix correct? - If so, what's the best way to get it into the current release quickly? I'm a newbie to the Apache open source community. - And if I'm correct, how did it ever work? My theory is that since most Axis users appear to use java2wsdl (we are not), serialization of enums was taken care of by a generated getDeserializer() function - but that's a shot in the dark - did I hit anything? ;-) --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira