From 5f673628332049527582a2c5ebdb16b391e96ca6 Mon Sep 17 00:00:00 2001 From: Pascal Junck Date: Wed, 3 Nov 2004 08:05:24 +0000 Subject: INTEGRATION: CWS sb22 (1.13.22); FILE MERGED 2004/09/27 11:25:31 sb 1.13.22.1: #i34239# Fixed mistake that prevented sequence optimization from happening. --- jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java') diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java b/jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java index de89cfd1810d..35a97521b6f1 100644 --- a/jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java +++ b/jurt/com/sun/star/lib/uno/protocols/urp/Unmarshal.java @@ -2,9 +2,9 @@ * * $RCSfile: Unmarshal.java,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: obo $ $Date: 2004-06-03 14:35:35 $ + * last change: $Author: pjunck $ $Date: 2004-11-03 09:05:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -414,12 +414,12 @@ final class Unmarshal { private Object readSequenceValue(TypeDescription type) { int len = readCompressedNumber(); - if (type.getTypeClass() == TypeClass.BYTE) { + TypeDescription ctype = (TypeDescription) type.getComponentType(); + if (ctype.getTypeClass() == TypeClass.BYTE) { byte[] data = new byte[len]; readBytes(data); return data; } else { - TypeDescription ctype = (TypeDescription) type.getComponentType(); Object value = Array.newInstance( ctype.getTypeClass() == TypeClass.ANY ? Object.class : ctype.getZClass(), len); -- cgit