78 |
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynValue"); |
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynValue"); |
79 |
} |
} |
80 |
} |
} |
81 |
|
|
82 |
|
/** |
83 |
|
* Narrow the given object to the DynValue. For the objects that are |
84 |
|
* always local, this operation does not differ from the ordinary |
85 |
|
* {@link #narrow} (ClassCastException will be thrown if narrowing something |
86 |
|
* different). |
87 |
|
* |
88 |
|
* @param obj the object to cast. |
89 |
|
* |
90 |
|
* @return the casted DynValue. |
91 |
|
* |
92 |
|
* @since 1.5 |
93 |
|
* |
94 |
|
* @see OMG issue 4158. |
95 |
|
*/ |
96 |
|
public static DynValue unchecked_narrow(org.omg.CORBA.Object obj) |
97 |
|
{ |
98 |
|
return narrow(obj); |
99 |
|
} |
100 |
|
|
101 |
/** |
/** |
102 |
* Get the type code of the {@link DynValue}. |
* Get the type code of the {@link DynValue}. |