Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 616

Summary: Error with shadowed enum declarations
Product: JacORB Reporter: Duane Griffin <d.griffin>
Component: IDL compilerAssignee: Gerald Brose <gerald.brose>
Status: RESOLVED FIXED    
Severity: major CC: Thomas.Leineweber
Priority: P2    
Version: 2.2.2   
Hardware: All   
OS: All   
URL: http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-developer/2005-July/007472.html
Attachments: Patch to prevent shadowed enums from crashing the IDL compiler

Description Duane Griffin 2005-07-29 16:05:09 UTC
As reported by John Fisher, the IDL below does not work. It looks like there is
a problem in src/org/jacorb/idl/NameTable.java relating to shadowed enums. I've
attached a patch that seems to fix the problem.

interface A {
   enum my_enum {
      ENUM1,
      ENUM2
   };
};

interface B : A {
   enum my_enum {
      ENUM1,
      ENUM3
   };
};
Comment 1 Duane Griffin 2005-07-29 16:05:48 UTC
Created attachment 163 [details]
Patch to prevent shadowed enums from crashing the IDL compiler
Comment 2 Thomas Leineweber 2005-08-24 12:34:34 UTC
the given patch seems to fix bug #470 and bug #517, too.
Comment 3 André Spiegel 2005-10-03 22:43:43 UTC
I installed Duane's patch.  Will also close bug 470 and bug 517.  Thanks, Duane
and Thomas.