commit | 50030f7270f203776eba7868e2a6b41bf57198c2 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Fri Jun 19 15:10:36 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Fri Jun 19 15:10:36 2009 +0000 |
tree | 308e1c130124a1d73bc282f01d620d7a29962fd3 | |
parent | 2ca9a63c7cd1427a7f53be90656d2a6bf09854c5 [diff] |
Fixed a bug in filter evaluation when handling an array of shorts. (FELIX-1258) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@786537 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/util/ldap/Parser.java b/framework/src/main/java/org/apache/felix/framework/util/ldap/Parser.java index b467988..52c7a71 100644 --- a/framework/src/main/java/org/apache/felix/framework/util/ldap/Parser.java +++ b/framework/src/main/java/org/apache/felix/framework/util/ldap/Parser.java
@@ -1513,11 +1513,11 @@ } else if (clazz == Short.TYPE) { - byte[] src = (byte[]) array; - array = new Byte[src.length]; + short[] src = (short[]) array; + array = new Short[src.length]; for (int i = 0; i < src.length; i++) { - ((Object[]) array)[i] = new Byte(src[i]); + ((Object[]) array)[i] = new Short(src[i]); } } else if (clazz == Integer.TYPE)