Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 63178 invoked from network); 27 Jul 2009 18:14:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jul 2009 18:14:35 -0000 Received: (qmail 65418 invoked by uid 500); 27 Jul 2009 18:15:39 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 65325 invoked by uid 500); 27 Jul 2009 18:15:39 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 65316 invoked by uid 99); 27 Jul 2009 18:15:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 18:15:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 18:15:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E134E234C04B for ; Mon, 27 Jul 2009 11:15:14 -0700 (PDT) Message-ID: <666189340.1248718514921.JavaMail.jira@brutus> Date: Mon, 27 Jul 2009 11:15:14 -0700 (PDT) From: "Andreas Veithen (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4443) Schema generation for inner classes is not backward compatible In-Reply-To: <994832811.1248359594849.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735692#action_12735692 ] Andreas Veithen commented on AXIS2-4443: ---------------------------------------- Detelin, I tried to apply the patch to the trunk, but that causes a test failure: Failed tests: testGeneratesExtraClass(org.apache.axis2.description.java2wsdl.DefaultSchemaGeneratorTest) Can you have a look at why this test fails? > Schema generation for inner classes is not backward compatible > -------------------------------------------------------------- > > Key: AXIS2-4443 > URL: https://issues.apache.org/jira/browse/AXIS2-4443 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Affects Versions: 1.5 > Reporter: Detelin Yordanov > Assignee: Andreas Veithen > Attachments: DefaultSchemaGenerator.diff, InnerClassTestService.aar, InnerClassTestService.wsdl > > > In Axis2 1.5 schema types generated for inner classes have just the name of the class, while in Axis2 1.4.1 the name of the type incorporated the name of the parent class, e.g. > class Parent { > class Inner { > } > } > Axis2 1.4.1 created a complex type named "Parent_Inner" for the Inner class (it was replacing the dollar character in "Parent$Inner" with an underscore), while Axis2 1.5 creates just "Inner" type. > The reason must be in using Class#getSimpleName(), this method does not return the parent class prefix as the annogen's JClass#getSimpleName() did in Axis2 1.4.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.