diff options
Diffstat (limited to 'libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.java')
-rw-r--r-- | libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.java b/libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.java index 1e046c4e941..117eb5a3c9e 100644 --- a/libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.java +++ b/libjava/classpath/org/omg/PortableServer/LifespanPolicyValue.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; @@ -126,7 +128,9 @@ public class LifespanPolicyValue } 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; } } |