Bug Report no. 51

attlogo6876_dk.gif (2280 bytes)

sideHome.gif (2321 bytes) sideDownload.gif (2450 bytes) sideDocumentation.gif (2512 bytes) sideFAQ.gif (2344 bytes) sidePatch.gif (2543 bytes) sideSearch.gif (2403 bytes)

Reported By

Duncan Grisby

Date

14 April 1999

Platforms

All

Version

omniORB 2.7.1 and earlier

Description

If an IDL file containing a #pragma prefix ... is included into another IDL file, the prefix will continue to apply to all interfaces below the include directive (or until another prefix is specified).

For example:

  #include <Naming.idl>

  interface foo {};

In this case foo will have repository id "IDL:omg.org/foo:1.0", since Naming.idl contains:

  #pragma prefix "omg.org"

However, if the pragma is inside a module, then the scope is properly restricted to that module.

Workaround

Unfortunately the workaround posted here (until 20/4/99) does not work after all!

 

For comments, feedback, etc, please see the 'Keeping in touch' page.
Copyright 1999 - AT&T Laboratories Cambridge