7004713: regression: cannot find symbol: variable delegate failed compile _Stub
authorskoppar
Sun, 05 Dec 2010 22:22:54 -0800
changeset 7589 20f199a0929e
parent 7588 cdc4ca035126
child 7590 c4ed8d82b083
7004713: regression: cannot find symbol: variable delegate failed compile _Stub Summary: Also reviewed by ken.cavanaugh@oracle.com Reviewed-by: asaha
corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/Stub.java
--- a/corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/Stub.java	Wed Dec 08 10:43:16 2010 -0800
+++ b/corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/Stub.java	Sun Dec 05 22:22:54 2010 -0800
@@ -347,6 +347,7 @@
     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() ;");