diff options
Diffstat (limited to 'libjava/classpath/org/omg/IOP/CodecFactoryHelper.java')
-rw-r--r-- | libjava/classpath/org/omg/IOP/CodecFactoryHelper.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java b/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java index d5c55a264cc..fea0b887bd9 100644 --- a/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java +++ b/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java @@ -120,6 +120,25 @@ public abstract class CodecFactoryHelper throw bad; } } + + /** + * Narrow the given object to the CodecFactory. 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 CodecFactory. + * + * @since 1.5 + * + * @see OMG issue 4158. + */ + public static CodecFactory unchecked_narrow(org.omg.CORBA.Object obj) + { + return narrow(obj); + } /** * This should read the CodecFactory from the CDR intput stream, |