Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B3D7A659E for ; Tue, 19 Jul 2011 22:31:20 +0000 (UTC) Received: (qmail 51691 invoked by uid 500); 19 Jul 2011 22:31:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 51666 invoked by uid 500); 19 Jul 2011 22:31:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 51652 invoked by uid 99); 19 Jul 2011 22:31:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 22:31:19 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 22:31:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3E29345C40 for ; Tue, 19 Jul 2011 22:30:58 +0000 (UTC) Date: Tue, 19 Jul 2011 22:30:58 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <582485737.5631.1311114658251.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <918153958.277.1310999280040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-3664) wadl2java : xsd data types aren't mapped to java data types properly if they use mixed case. 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/CXF-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068023#comment-13068023 ] Sergey Beryozkin commented on CXF-3664: --------------------------------------- Hi, can you provide more info please ? I updated the schema in this file: http://svn.apache.org/repos/asf/cxf/trunk/tools/wadlto/jaxrs/src/test/resources/wadl/bookstore.xml by changing "" to and then updated element="prefix:thebook2" to "prefix:theBook2" and it worked OK. Can you post a sample schema fragment and provide more details please ? > wadl2java : xsd data types aren't mapped to java data types properly if they use mixed case. > -------------------------------------------------------------------------------------------- > > Key: CXF-3664 > URL: https://issues.apache.org/jira/browse/CXF-3664 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.4.1 > Environment: Windows 7 32 bit > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) > Reporter: Ceri Hughes > > The data types in my xsd use mixed case names - e.g. "userDefaults" > When I reference these in my reponse's representation elements, the wadl2java tool is unable to match them to the types processed by the xsd parser. > E.g. > > > > There is a line of code in the org.apache.cxf.jaxrs.ext.codegen.SourceGenerator.matchClassName method that checks the lower-cased version of the generated class name matches the local name of the type from the xsd. This will only ever work ig the local name is completely lowercased OR the method changes to match the 2 strings lower cased. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira