/[classpath]/classpath/org/omg/IOP/TaggedProfileHelper.java
ViewVC logotype

Diff of /classpath/org/omg/IOP/TaggedProfileHelper.java

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

revision 1.2.2.2 by gnu_andrew, Sat Sep 10 15:32:05 2005 UTC revision 1.2.2.3 by gnu_andrew, Wed Nov 2 00:44:14 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package org.omg.IOP;  package org.omg.IOP;
40    
41  import gnu.CORBA.CDR.cdrBufInput;  import gnu.CORBA.Minor;
42  import gnu.CORBA.CDR.cdrBufOutput;  import gnu.CORBA.CDR.BufferredCdrInput;
43    import gnu.CORBA.CDR.BufferedCdrOutput;
44    
45  import org.omg.CORBA.Any;  import org.omg.CORBA.Any;
46  import org.omg.CORBA.BAD_OPERATION;  import org.omg.CORBA.BAD_OPERATION;
# Line 118  public abstract class TaggedProfileHelpe Line 119  public abstract class TaggedProfileHelpe
119      catch (ClassCastException cex)      catch (ClassCastException cex)
120        {        {
121          BAD_OPERATION bad = new BAD_OPERATION("TaggedProfile expected");          BAD_OPERATION bad = new BAD_OPERATION("TaggedProfile expected");
122            bad.minor = Minor.Any;        
123          bad.initCause(cex);          bad.initCause(cex);
124          throw bad;          throw bad;
125        }        }
# Line 143  public abstract class TaggedProfileHelpe Line 145  public abstract class TaggedProfileHelpe
145      TaggedProfile value = new TaggedProfile();      TaggedProfile value = new TaggedProfile();
146      value.tag = input.read_long();      value.tag = input.read_long();
147    
148      if (input instanceof cdrBufInput)      if (input instanceof BufferredCdrInput)
149        {        {
150          // Highly probable.          // Highly probable.
151          value.profile_data = ((cdrBufInput) input).read_sequence();          value.profile_data = ((BufferredCdrInput) input).read_sequence();
152        }        }
153      else      else
154        {        {
# Line 167  public abstract class TaggedProfileHelpe Line 169  public abstract class TaggedProfileHelpe
169    {    {
170      output.write_long(value.tag);      output.write_long(value.tag);
171    
172      if (output instanceof cdrBufOutput)      if (output instanceof BufferedCdrOutput)
173        {        {
174          // Highly probable.          // Highly probable.
175          output.write_long(value.profile_data.length);          output.write_long(value.profile_data.length);
# Line 178  public abstract class TaggedProfileHelpe Line 180  public abstract class TaggedProfileHelpe
180          catch (IOException e)          catch (IOException e)
181            {            {
182              MARSHAL m = new MARSHAL();              MARSHAL m = new MARSHAL();
183                m.minor = Minor.Encapsulation;
184              m.initCause(e);              m.initCause(e);
185              throw m;              throw m;
186            }            }

Legend:
Removed from v.1.2.2.2  
changed lines
  Added in v.1.2.2.3

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