Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 2461 invoked from network); 3 Apr 2006 09:04:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 09:04:12 -0000 Received: (qmail 73277 invoked by uid 500); 3 Apr 2006 09:04:11 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 73260 invoked by uid 500); 3 Apr 2006 09:04:11 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 73236 invoked by uid 99); 3 Apr 2006 09:04:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 02:04:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 02:04:10 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id AA4E66ACB5 for ; Mon, 3 Apr 2006 10:03:49 +0100 (BST) Message-ID: <344355388.1144055029694.JavaMail.jira@ajax> Date: Mon, 3 Apr 2006 10:03:49 +0100 (BST) From: "Adrian Dick (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-202) enums cause name clashes In-Reply-To: <1970131049.1097745951006.JavaMail.apache@nagoya> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-202?page=all ] Adrian Dick closed AXISCPP-202: ------------------------------- > enums cause name clashes > ------------------------ > > Key: AXISCPP-202 > URL: http://issues.apache.org/jira/browse/AXISCPP-202 > Project: Axis-C++ > Type: Bug > Components: Basic Architecture > Versions: 1.3 Final > Reporter: Mark Whitlock > Assignee: Mark Whitlock > Fix For: 1.5 Alpha > > > --- Valentin Kuznetsov wrote: > > > > > 2) Add namespace around all enums. I found that Axis > > > conflicts with other software we use who also have > > > enum with CRITICAL, INFO, WARN keywords. If we'll wrap > > > those enum in axis into axis specific namespace all > > > existing and potential future problems will go away. > > > > > > > +1 > > > > Samisa... > > > Simply putting namespaces around these enums would break C applications, since C does not support namespaces. I agree this is the right solution for C++. For C, it would be good to prefix all enums with AXIS_. I don't think AXIS_SEVERITY_LEVEL needs to be externalised anyway, since it is only used by trace and AxisTrace.h is not external. There is also a problem with some externalised #defines like XML_Ch and SOAPACTIONHEADER which could also clash. > So I propose move AXIS_SEVERITY_LEVEL to AxisTrace.h, for C++ put namespaces around all enums, for C prefix all enums with AXIS_, and for *both* C and C++ prefix all #defines with AXIS_. > Unfortunately this will require applications changing, WSDL2WS changes and stubs being regenerated when users move to 1.3. Is this critical for 1.3 or should we just move AXIS_SEVERITY_LEVEL to AxisTrace.h in 1.3 and fix it all properly for 1.4? > -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira