Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 616 - Error with shadowed enum declarations
Summary: Error with shadowed enum declarations
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: IDL compiler (show other bugs)
Version: 2.2.2
Hardware: All All
: P2 major
Assignee: Gerald Brose
URL: http://lists.spline.inf.fu-berlin.de/...
Depends on:
Blocks:
 
Reported: 2005-07-29 16:05 UTC by Duane Griffin
Modified: 2005-10-03 22:43 UTC (History)
1 user (show)

See Also:


Attachments
Patch to prevent shadowed enums from crashing the IDL compiler (1.61 KB, patch)
2005-07-29 16:05 UTC, Duane Griffin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.