/[classpath]/classpath/gnu/CORBA/CDR/gnuRuntime.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/CDR/gnuRuntime.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by audriusa, Sun Oct 2 20:24:18 2005 UTC revision 1.3 by audriusa, Tue Oct 4 17:58:14 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
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    
# Line 234  public class gnuRuntime Line 235  public class gnuRuntime
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    /**    /**
# Line 244  public class gnuRuntime Line 249  public class gnuRuntime
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;
# Line 260  public class gnuRuntime Line 266  public class gnuRuntime
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;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26