Skip Menu |

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

Report information
The Basics
Id: 14472
Status: resolved
Priority: 0/
Queue: CORBA-XMLSchemas

People
Owner: PERRAD [...] cpan.org
Requestors: john.kavadias [...] nec.com.au
Cc:
AdminCc:

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



Subject: Multiple IDL enums reusing an identifier for a value name cause 'already exists'
enum NameA { NameA_1, NameA_2, NameA_3 }; enum NameB { NameB_1, NameA_2, // this one causes 'already exists' error NameB_3 }; Error message in output has this structure: #path/to/idl/file.idl:line#Error: Identifier 'NameA_2' already exists. Reclassify Severity as you see fit, but this is a difficulty for IDL already in production.
[guest - Mon Sep 5 05:08:42 2005]: Sorry, I did not give all the required platform information. Here it is. Module Version: 0.40 CORBA-XMLSchemas-0.40 Perl Version: 5.8.5 v5.8.5 built for i386-linux-thread-multi Operating System: Fedora Core 3 Linux <host> 2.6.10-1.766_FC3 #1 Wed Feb 9 23:06:42 EST 2005 i686 i686 i386 GNU/Linux
Another piece of useful debugging information: In our IDL the two problem enums are in the same .idl file.
OK, so our idl compiler is too forgiving, and you are not supposed to have the same element name in different enums. Please close this as something like 'resolved, operator error'. Thanks for your time.
Conforme with CORBA-IDL specifications.