38 |
|
|
39 |
package gnu.CORBA.CDR; |
package gnu.CORBA.CDR; |
40 |
|
|
41 |
import org.omg.CORBA.CompletionStatus; |
import gnu.CORBA.Minor; |
42 |
|
|
43 |
import org.omg.CORBA.LocalObject; |
import org.omg.CORBA.LocalObject; |
44 |
import org.omg.CORBA.MARSHAL; |
import org.omg.CORBA.MARSHAL; |
45 |
|
|
235 |
else if (e != null) |
else if (e != null) |
236 |
return e.object; |
return e.object; |
237 |
else |
else |
238 |
throw new MARSHAL("No object was written at " + x + " (offset " + offset |
{ |
239 |
+ ") r " + this + dump()); |
MARSHAL m = new MARSHAL("No object was written at " + x + |
240 |
|
" (offset " + offset + ") r " + this + dump()); |
241 |
|
m.minor = Minor.Graph; |
242 |
|
throw m; |
243 |
|
} |
244 |
} |
} |
245 |
|
|
246 |
/** |
/** |
249 |
public void singleIdWritten(String id, int at) |
public void singleIdWritten(String id, int at) |
250 |
{ |
{ |
251 |
if (sh_ids.containsKey(id)) |
if (sh_ids.containsKey(id)) |
252 |
throw new Error("Repetetive writing of the same string " + id + dump()); |
throw new InternalError("Repetetive writing of the same string " + |
253 |
|
id + dump()); |
254 |
|
|
255 |
Entry e = new Entry(); |
Entry e = new Entry(); |
256 |
e.at = at; |
e.at = at; |
266 |
public void multipleIdsWritten(String[] ids, int at) |
public void multipleIdsWritten(String[] ids, int at) |
267 |
{ |
{ |
268 |
if (sh_ids.containsKey(ids)) |
if (sh_ids.containsKey(ids)) |
269 |
throw new Error("Repetetive writing of the same string " + ids + dump()); |
throw new InternalError("Repetetive writing of the same string " + |
270 |
|
ids + dump()); |
271 |
|
|
272 |
Entry e = new Entry(); |
Entry e = new Entry(); |
273 |
e.at = at; |
e.at = at; |