Bug 585

Summary: #pragma prefix is not remembered!
Product: TAO Reporter: naga
Component: IDL CompilerAssignee: Jeff Parsons <parsons>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P3    
Version: 1.0   
Hardware: SPARC   
OS: Solaris   

Description naga 2000-06-05 17:45:56 CDT
Hi,
  
  In a IDL file if another file is included the #pragma prefix of the current 
file is forgotten and is not prefixed to the IORs.

Example:
=========
A.idl
-----
interface A
{
  void ping_A ();
}

B.idl
------
#pragma "tao.com"
interface B
{
  void ping_B ();
}

C1.idl
------
#include "B.idl"
#include "A.idl"
interface C1 : B, A
{
}

C2.idl
--------
#include "A.idl"
#include "B.idl"

interface C2: B, A
{
}

In the above example interface C1 doesn't have "tao.com" prefix whereas 
interface C2 will have "tao.com" as the prefix just because of the ordering of
inclusion of A.idl and B.idl. If a file that is last included doesn't have a 
#pragma prefix then none of the interface that comes after that will have any 
pragma prefixes..
Comment 1 Carlos O'Ryan 2000-06-13 10:13:40 CDT
This is clearly a duplicate bug.


*** This bug has been marked as a duplicate of 179 ***
Comment 2 Carlos O'Ryan 2000-06-13 10:14:22 CDT
Sorry, wrong duplicate
Comment 3 Carlos O'Ryan 2000-06-13 10:14:49 CDT
This time I got it right...


*** This bug has been marked as a duplicate of 129 ***