Index: src/org/jacorb/idl/NameTable.java =================================================================== RCS file: /cvsroot/jacorb/JacORB/src/org/jacorb/idl/NameTable.java,v retrieving revision 1.23 diff -u -r1.23 NameTable.java --- src/org/jacorb/idl/NameTable.java 28 Mar 2005 19:58:29 -0000 1.23 +++ src/org/jacorb/idl/NameTable.java 29 Jul 2005 11:34:27 -0000 @@ -171,10 +171,13 @@ shadows.remove( name ); h.remove( name ); - // remove the inherited type definition, a new one will be - // added soon under this name! Addition of this line fixes - // bug #345 - TypeMap.removeDefinition( name ); + if( kind.startsWith( "type" ) ) + { + // remove the inherited type definition, a new one will be + // added soon under this name! Addition of this line fixes + // bug #345 + TypeMap.removeDefinition( name ); + } } } @@ -354,6 +357,13 @@ key.substring( key.lastIndexOf( '.' ) ), anc ); } + else + { + if( logger.isDebugEnabled() ) { + logger.debug("- NameTable.inherit " + kind + " from: " + key); + } + } + if( !isDefined( key ) ) throw new RuntimeException( "CompilerError!" );