Issue 617: Why does get_principal() take an Environment parameter (cxx_revision) Source: (, ) Nature: Uncategorized Severity: Summary: Summary: When this IDL is mapped into C++ for a non-EH target compiler, won"t this method end up having 2 environment parameters?. This is only IDL in current spec that takes environment parameter Resolution: Duplicate of issue 191 - closed Revised Text: Actions taken: July 14, 1997: received issue February 19, 1999: closed issue Discussion: End of Annotations:===== Return-Path: To: cxx_revision@omg.org cc: orb_revision@omg.org Subject: testsuite issue Date: Mon, 14 Jul 1997 15:58:39 +0100 From: Stephen McNamara Hi all, can anybody explain why get_principal() (on the BOA) explicitly takes an Environment parameter? When this IDL is mapped into C++ for a non-EH target compiler wont this method end up having 2 environment parameters? If it is supposed to be used to pass exception information (as per normal Environment parameter usage) it should at least be an inout. Currently it is an in parameter rendering it pretty useless. This is the only IDL in the current specification that explicitly takes an Environment parameter. stephen Return-Path: Sender: jis@fpk.hp.com Date: Mon, 14 Jul 1997 11:58:22 -0400 From: Jishnu Mukerji Organization: Hewlett-Packard New Jersey Labs To: Stephen McNamara Cc: cxx_revision@omg.org, orb_revision@omg.org Subject: Re: testsuite issue References: <199707141500.QAA05705@green.aptest.ie> Stephen McNamara wrote: > > Hi all, > > can anybody explain why get_principal() (on the BOA) explicitly > takes > an Environment parameter? When this IDL is mapped into C++ for a > non-EH target compiler wont this method end up having 2 environment > parameters? > > If it is supposed to be used to pass exception information (as per > normal Environment parameter usage) it should at least be an > inout. Currently it is an in parameter rendering it pretty useless. > > This is the only IDL in the current specification that explicitly > takes an Environment parameter. > > stephen get_principal and the Principal interface atogether is pretty useless:-). The BOA::get_principal operation and the Principal interface (which incidentally has no operations in it) have been deprecated by the Security Service spec, so nobody should be using it anyway. It should be gone in the next revision of the Core. Jishnu. -- Email: jis@fpk.hp.com Hewlett-Packard New Jersey Labs Tel: +1 973 443 7528 MS D283, 180 Park Ave., Bldg. 103 Fax: +1 973 443 7602 Florham Park, NJ 07932-9998, USA