aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/org/omg/IOP/TaggedProfileHelper.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-11-15 23:20:01 +0000
committerMark Wielaard <mark@klomp.org>2005-11-15 23:20:01 +0000
commit8079928c7ce26b013601b8ebf20c69c63181278f (patch)
treea5eb7cf42a51869cc8aa1fad7ad6a90cca47fdd8 /libjava/classpath/org/omg/IOP/TaggedProfileHelper.java
parent7efc292acde3fb6dcc93984451ad21a109518417 (diff)
Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated. * Makefile.in: Likewise. * scripts/makemake.tcl: Use glob -nocomplain. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@107049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/org/omg/IOP/TaggedProfileHelper.java')
-rw-r--r--libjava/classpath/org/omg/IOP/TaggedProfileHelper.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/libjava/classpath/org/omg/IOP/TaggedProfileHelper.java b/libjava/classpath/org/omg/IOP/TaggedProfileHelper.java
index a23122eb975..2943657c01f 100644
--- a/libjava/classpath/org/omg/IOP/TaggedProfileHelper.java
+++ b/libjava/classpath/org/omg/IOP/TaggedProfileHelper.java
@@ -38,8 +38,9 @@ exception statement from your version. */
package org.omg.IOP;
-import gnu.CORBA.CDR.cdrBufInput;
-import gnu.CORBA.CDR.cdrBufOutput;
+import gnu.CORBA.Minor;
+import gnu.CORBA.CDR.BufferredCdrInput;
+import gnu.CORBA.CDR.BufferedCdrOutput;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -118,6 +119,7 @@ public abstract class TaggedProfileHelper
catch (ClassCastException cex)
{
BAD_OPERATION bad = new BAD_OPERATION("TaggedProfile expected");
+ bad.minor = Minor.Any;
bad.initCause(cex);
throw bad;
}
@@ -143,10 +145,10 @@ public abstract class TaggedProfileHelper
TaggedProfile value = new TaggedProfile();
value.tag = input.read_long();
- if (input instanceof cdrBufInput)
+ if (input instanceof BufferredCdrInput)
{
// Highly probable.
- value.profile_data = ((cdrBufInput) input).read_sequence();
+ value.profile_data = ((BufferredCdrInput) input).read_sequence();
}
else
{
@@ -167,7 +169,7 @@ public abstract class TaggedProfileHelper
{
output.write_long(value.tag);
- if (output instanceof cdrBufOutput)
+ if (output instanceof BufferedCdrOutput)
{
// Highly probable.
output.write_long(value.profile_data.length);
@@ -178,6 +180,7 @@ public abstract class TaggedProfileHelper
catch (IOException e)
{
MARSHAL m = new MARSHAL();
+ m.minor = Minor.Encapsulation;
m.initCause(e);
throw m;
}