7199858: Marshal exception is wrong
Reviewed-by: lancea
This commit is contained in:
parent
7ba83041b1
commit
2fd9426c20
@ -2189,10 +2189,7 @@ public final class TypeCodeImpl extends TypeCode
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user