Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A48B9FC0 for ; Wed, 18 Jul 2012 12:01:39 +0000 (UTC) Received: (qmail 74191 invoked by uid 500); 18 Jul 2012 12:01:38 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 73729 invoked by uid 500); 18 Jul 2012 12:01:37 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 73689 invoked by uid 99); 18 Jul 2012 12:01:36 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 12:01:36 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id D5FCA14281C for ; Wed, 18 Jul 2012 12:01:35 +0000 (UTC) Date: Wed, 18 Jul 2012 12:01:35 +0000 (UTC) From: "Hudson (JIRA)" To: java-dev@axis.apache.org Message-ID: <624025199.68629.1342612895879.JavaMail.jiratomcat@issues-vm> In-Reply-To: <199262119.10430.1307708699026.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-5070) Enumeration type fromValue() function update breaks stub compilation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13417019#comment-13417019 ] Hudson commented on AXIS2-5070: ------------------------------- Integrated in Axis2 #1650 (See [https://builds.apache.org/job/Axis2/1650/]) Fixed AXIS2-5070. (Revision 1362855) Result = SUCCESS sagara : Files : * /axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl > Enumeration type fromValue() function update breaks stub compilation > -------------------------------------------------------------------- > > Key: AXIS2-5070 > URL: https://issues.apache.org/jira/browse/AXIS2-5070 > Project: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.6.0 > Reporter: Vilnis Termanis > Assignee: Sagara Gunathunga > Fix For: 1.7.0 > > > The "fix" in AXIS2-3034 unfortunately breaks WSDL generation in that the fromValue() function is not compilable in certain situations. For example, with the following type: > > > > > Something > > > > > Something else > > > > > Corresponding fromValue function now contains: > public static TSomeType fromValue(int value) > throws java.lang.IllegalArgumentException { > TSomeType enumeration = (TSomeType) > > _table_.get(value + ""); > > if ((enumeration == null) && !((value == null) || (value.equals("")))) { > throw new java.lang.IllegalArgumentException(); > } > return enumeration; > } > Since value is of type 'int', the updated if statement results in compilation failure ("int cannot be dereferenced"). > Tested with Axis2 1.6.0 wsdl2java. > Regards, > VT -- 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