Amend HBASE-11438 [Visibility Controller] Support UTF8 character as Visibility Labels; Fix failing tests

String(byte[]) constructor may not select UTF8 aware conversion
depending on environment
This commit is contained in:
Andrew Purtell 2014-08-14 11:43:45 -07:00
parent 1e55bdbf77
commit 819b06d621
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class ExpressionParser {
// If we don't do this way then we may have to handle while checking the authorizations.
// Better to do it here.
byte[] array = com.google.common.primitives.Bytes.toArray(list);
String leafExp = new String(array).trim();
String leafExp = Bytes.toString(array).trim();
if (leafExp.isEmpty()) {
throw new ParseException("Error parsing expression " + expS + " at column : " + index);
}