diff options
Diffstat (limited to 'org/omg/PortableServer/ServantActivatorHelper.java')
-rw-r--r-- | org/omg/PortableServer/ServantActivatorHelper.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/org/omg/PortableServer/ServantActivatorHelper.java b/org/omg/PortableServer/ServantActivatorHelper.java index f2779b1b5..8aa58b2f6 100644 --- a/org/omg/PortableServer/ServantActivatorHelper.java +++ b/org/omg/PortableServer/ServantActivatorHelper.java @@ -41,6 +41,7 @@ package org.omg.PortableServer; import gnu.CORBA.Minor; import org.omg.CORBA.Any; +import org.omg.CORBA.BAD_OPERATION; import org.omg.CORBA.BAD_PARAM; import org.omg.CORBA.MARSHAL; import org.omg.CORBA.ORB; @@ -114,6 +115,26 @@ public abstract class ServantActivatorHelper throw bad; } } + + /** + * Narrow the given object to the ServantActivator. For the objects that are + * always local, this operation does not differ from the ordinary + * {@link #narrow} (ClassCastException will be thrown if narrowing something + * different). + * + * @param obj the object to cast. + * + * @return the casted ServantActivator. + * + * @since 1.5 + * + * @see OMG issue 4158. + */ + public static ServantActivator unchecked_narrow(org.omg.CORBA.Object obj) + { + return narrow(obj); + } + /** * This should read the servant activator, but it cannot be transferred |