120 |
throw bad; |
throw bad; |
121 |
} |
} |
122 |
} |
} |
123 |
|
|
124 |
|
/** |
125 |
|
* Narrow the given object to the CodecFactory. For the objects that are |
126 |
|
* always local, this operation does not differ from the ordinary |
127 |
|
* {@link #narrow} (ClassCastException will be thrown if narrowing something |
128 |
|
* different). |
129 |
|
* |
130 |
|
* @param obj the object to cast. |
131 |
|
* |
132 |
|
* @return the casted CodecFactory. |
133 |
|
* |
134 |
|
* @since 1.5 |
135 |
|
* |
136 |
|
* @see OMG issue 4158. |
137 |
|
*/ |
138 |
|
public static CodecFactory unchecked_narrow(org.omg.CORBA.Object obj) |
139 |
|
{ |
140 |
|
return narrow(obj); |
141 |
|
} |
142 |
|
|
143 |
/** |
/** |
144 |
* This should read the CodecFactory from the CDR intput stream, |
* This should read the CodecFactory from the CDR intput stream, |