Skip Menu |

This queue is for tickets about the CORBA-XMLSchemas CPAN distribution.

Report information
The Basics
Id: 39202
Status: rejected
Priority: 0/
Queue: CORBA-XMLSchemas

People
Owner: PERRAD [...] cpan.org
Requestors: danilo.turina [...] alcatel-lucent.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Parser do not support IDL case sensitiveness
Date: Fri, 12 Sep 2008 10:00:10 +0200
To: bug-CORBA-XMLSchemas [...] rt.cpan.org
From: Danilo Turina <danilo.turina [...] alcatel-lucent.it>
Hello, trying to convert a number of IDL files into WSDL, I found that sometimes I get error like these: CosNotification.idl:40#Error: 'EventType' collides with keyword 'eventtype'. Port.idl:47#Error: Identifier 'rate' collides with 'Rate'. Afaik IDL is case sensitive (and, infact, the IDLs I'm trying to convert to WSDL, compile fine to Java or C++ code), but the parser seems to not support it. Environment information: Distribution name and version: CORBA-XMLSchemas-2.62 Perl version: v5.6.1 OS: HP-UX 11.11 Regards, Danilo Turina
CORBA-IDL is not exactly case sensitive. See CORBA Specifications 3.1 (freely available on http://www.omg.org/spec/CORBA/3.1/) 7.20 Names and Scoping OMG IDL identifiers are case insensitive; that is, two identifiers that differ only in the case of their characters are considered redefinitions of one another. However, all references to a definition must use the same case as the defining occurrence. This allows natural mappings to case-sensitive languages. For example: module M { typedef long Long; // Error: Long clashes with keyword long typedef long TheThing; interface I { typedef long MyLong; myLong op1( // Error: inconsistent capitalization in TheThing thething; // Error: TheThing clashes with thething ); }; }; Some IDL compilers that target C++ or Java languages, could be not strict with this rule because it's not a problem with these target languages. But, my parsers (in CORBA::IDL) are strictly compliant with CORBA specifications.
Subject: Re: [rt.cpan.org #39202] Parser do not support IDL case sensitiveness
Date: Mon, 15 Sep 2008 09:58:10 +0200
To: bug-CORBA-XMLSchemas [...] rt.cpan.org
From: Danilo Turina <danilo.turina [...] alcatel-lucent.it>
Thanks for the explanation. I was drawn to error by a CosNotification.idl that had a line, like this: EventType eventtype; so I didn't bothered to check the specifications, since I thought "if OMG releases this IDL, IDL itself must be case sensitive". I was wrong (and I don't know why the CosNotification.idl we have is done like that) and I should have checked the IDL specs. Thank you, Danilo Turina PERRAD via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=39202 > > > CORBA-IDL is not exactly case sensitive. > > See CORBA Specifications 3.1 (freely available on > http://www.omg.org/spec/CORBA/3.1/) > > 7.20 Names and Scoping > OMG IDL identifiers are case insensitive; that is, two identifiers that > differ only in the case of their characters are > considered redefinitions of one another. However, all references to a > definition must use the same case as the defining > occurrence. This allows natural mappings to case-sensitive languages. > For example: > module M { > typedef long Long; // Error: Long clashes with keyword long > typedef long TheThing; > interface I { > typedef long MyLong; > myLong op1( // Error: inconsistent > capitalization > in TheThing thething; // Error: TheThing clashes with > thething > ); > }; > }; > > > Some IDL compilers that target C++ or Java languages, could be not > strict with this rule because it's not a problem with these target > languages. > But, my parsers (in CORBA::IDL) are strictly compliant with CORBA > specifications. > > >
-- Danilo Turina Alcatel-Lucent Software Developer OND Network Management Rieti (Italy) Email: danilo.turina@alcatel-lucent.it Phone: +39 0746 600332 6 anni 9 mesi 7 giorni 5 ore 53 minuti 24 secondi