diff options
Diffstat (limited to 'libjava/classpath/org/omg/IOP/ServiceIdHelper.java')
-rw-r--r-- | libjava/classpath/org/omg/IOP/ServiceIdHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/classpath/org/omg/IOP/ServiceIdHelper.java b/libjava/classpath/org/omg/IOP/ServiceIdHelper.java index fac0746a82a..084dbd06d97 100644 --- a/libjava/classpath/org/omg/IOP/ServiceIdHelper.java +++ b/libjava/classpath/org/omg/IOP/ServiceIdHelper.java @@ -38,6 +38,8 @@ exception statement from your version. */ package org.omg.IOP; +import gnu.CORBA.OrbRestricted; + import org.omg.CORBA.Any; import org.omg.CORBA.BAD_OPERATION; import org.omg.CORBA.ORB; @@ -65,7 +67,7 @@ public abstract class ServiceIdHelper */ public static TypeCode type() { - ORB orb = ORB.init(); + ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc("IDL:omg.org/IOP/ServiceId:1.0", "ServiceId", orb.get_primitive_tc(TCKind.tk_ulong) ); |