Bug 3158

Summary: Missing #include <tao/SystemException.h> from generated code
Product: TAO Reporter: J.T. Conklin <jtc>
Component: IDL CompilerAssignee: Johnny Willemsen <jwillemsen>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 1.6.1   
Hardware: x86   
OS: Solaris   
Bug Depends on:    
Bug Blocks: 3160    

Description J.T. Conklin 2007-11-30 22:54:03 CST
The TCC.cpp sources generated from tao/TransportCurrent/TC.idl does not contain an #include <tao/SystemException.h> even though it uses a CORBA::MARSHAL exception in TAO::Transport::NoContext::_tao_encode and TAO::Transport::NoContext::_tao_decode.

This is benign in most cases, because <tao/SystemException.h> is implicitly included (from template *.cpp files included by other headers).  But those template files aren't included for platforms with a working template repo mechanism and which don't define ACE_TEMPLATES_REQUIRE_SOURCE.
Comment 1 Johnny Willemsen 2007-12-01 00:58:39 CST
mine, also cdr.h is generated twice
Comment 2 Johnny Willemsen 2007-12-16 13:51:17 CST
Sun Dec 16 19:49:12 UTC 2007  Johnny Willemsen  <jwillemsen@remedy.nl>

        * TAO_IDL/be/be_codegen.cpp:
        * TAO_IDL/be/be_visitor_exception/exception_cs.cpp:
          Always generate SystemException.h in the stub source file and
          slightly changed the generated encode/decode operations.
          This fixes bugzilla 3158, thanks to JT  Conklin for reporting
          this