changeset 460:e725dd195858

7199858: Marshal exception is wrong Reviewed-by: lancea
author dmeetry
date Fri, 15 Feb 2013 01:49:36 +0400
parents 35684a40c584
children d17333363f8b c528d8ce83f1 59bff16bc0bf
files src/share/classes/com/sun/corba/se/impl/corba/TypeCodeImpl.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/corba/se/impl/corba/TypeCodeImpl.java	Thu Feb 07 12:32:39 2013 -0800
+++ b/src/share/classes/com/sun/corba/se/impl/corba/TypeCodeImpl.java	Fri Feb 15 01:49:36 2013 +0400
@@ -2189,10 +2189,7 @@
 
                 if (labelIndex == _unionLabels.length) {
                     // check if label has not been found
-                    if (_defaultIndex == -1)
-                        // throw exception if default was not expected
-                        throw wrapper.unexpectedUnionDefault() ;
-                    else
+                    if (_defaultIndex != -1)
                         // must be of the default branch type
                         _memberTypes[_defaultIndex].copy(src, dst);
                 }