Bug 3158 - Missing #include <tao/SystemException.h> from generated code
Summary: Missing #include <tao/SystemException.h> from generated code
Status: RESOLVED FIXED
Alias: None
Product: TAO
Classification: Unclassified
Component: IDL Compiler (show other bugs)
Version: 1.6.1
Hardware: x86 Solaris
: P3 normal
Assignee: Johnny Willemsen
URL:
Depends on:
Blocks: 3160
  Show dependency tree
 
Reported: 2007-11-30 22:54 CST by J.T. Conklin
Modified: 2007-12-16 13:51 CST (History)
0 users

See Also:


Attachments

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