Legacy Issue Number: 4335
Source: Triodia Technologies Pty Ltd ( Michi Henning)
the text for get_interface() says:
An operation on the object reference, get_interface, returns an object
in the Interface Repository, which provides type information that may
be useful to a program. See the Interface Repository chapter for a
definition of operations on the Interface Repository. The
implementation of this operation may involve contacting the ORB
that implements the target object.
This does not say what should happen if I call _get_interface() and
- the interface repository isn't running,
- the interface repository is running and can be reached, but
doesn't contain an entry for the object's interface.
Looking at the INTF_REPOS exception, we have:
An ORB raises this exception if it cannot reach the interface
repository, or some other failure relating to the interface
repository is detected.
This would indicate that, if the repository isn't running, the client should
get INTF_REPOS. However, we have no idea what should happen if the repository
is in fine shape, but no entry exists for the interface.
Since an unpopulated interface repository is very much the same thing as
no interface repository at all, I would like to flag both scenarios as an
Proposal: add the following sentence to the end of 22.214.171.124:
If the interface repository is not available, get_interface() raises
INTF_REPOS with minor code 1. If the interface repository does not
contain an entry for the object's (most derived) interface,
get_interface() raises INTF_REPOS with minor code 2.
Update the minor code table in 4.11.4 accordingly.
Reported: CORBA 2.4.2 — Tue, 5 Jun 2001 04:00 GMT
Disposition: Resolved — CORBA 2.5
Make the suggested change and the additional change suggested in the archive
Updated: Fri, 6 Mar 2015 20:58 GMT