aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/org/omg/DynamicAny/DynValueHelper.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-11-15 23:20:01 +0000
committerMark Wielaard <mark@klomp.org>2005-11-15 23:20:01 +0000
commit8079928c7ce26b013601b8ebf20c69c63181278f (patch)
treea5eb7cf42a51869cc8aa1fad7ad6a90cca47fdd8 /libjava/classpath/org/omg/DynamicAny/DynValueHelper.java
parent7efc292acde3fb6dcc93984451ad21a109518417 (diff)
Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated. * Makefile.in: Likewise. * scripts/makemake.tcl: Use glob -nocomplain. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@107049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/org/omg/DynamicAny/DynValueHelper.java')
-rw-r--r--libjava/classpath/org/omg/DynamicAny/DynValueHelper.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/libjava/classpath/org/omg/DynamicAny/DynValueHelper.java b/libjava/classpath/org/omg/DynamicAny/DynValueHelper.java
index a6d7afaa9e3..026ca499077 100644
--- a/libjava/classpath/org/omg/DynamicAny/DynValueHelper.java
+++ b/libjava/classpath/org/omg/DynamicAny/DynValueHelper.java
@@ -78,6 +78,25 @@ public abstract class DynValueHelper
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynValue");
}
}
+
+ /**
+ * Narrow the given object to the DynValue. 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 DynValue.
+ *
+ * @since 1.5
+ *
+ * @see OMG issue 4158.
+ */
+ public static DynValue unchecked_narrow(org.omg.CORBA.Object obj)
+ {
+ return narrow(obj);
+ }
/**
* Get the type code of the {@link DynValue}.