diff options
Diffstat (limited to 'libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java')
-rw-r--r-- | libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java b/libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java index d0992d9dbe2..c0f281249b0 100644 --- a/libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java +++ b/libjava/classpath/org/omg/PortableServer/IdUniquenessPolicyValue.java @@ -38,6 +38,8 @@ exception statement from your version. */ package org.omg.PortableServer; +import gnu.CORBA.Minor; + import org.omg.CORBA.BAD_OPERATION; import org.omg.CORBA.portable.IDLEntity; @@ -129,7 +131,9 @@ public class IdUniquenessPolicyValue } catch (ArrayIndexOutOfBoundsException ex) { - throw new BAD_OPERATION("Invalid enumeration code " + code); + BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); + bad.minor = Minor.PolicyType; + throw bad; } } |