7004713: regression: cannot find symbol: variable delegate failed compile _Stub

Also reviewed by ken.cavanaugh@oracle.com

Reviewed-by: asaha
This commit is contained in:
Sunita Koppar 2010-12-05 22:22:54 -08:00
parent 819310f377
commit bed261e6aa

View file

@ -347,6 +347,7 @@ public class Stub implements AuxGen
stream.println (" org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);");
stream.println (" try {");
stream.println (" org.omg.CORBA.Object obj = orb.string_to_object (str);");
stream.println (" org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();");
stream.println (" _set_delegate (delegate);");
stream.println (" } finally {");
stream.println (" orb.destroy() ;");