changeset 224:197db5731b92

8132531: GPIOPortPermission("\::") throws IAE Summary: Name is normalized for all DevicePermission Reviewed-by: snazarki Contributed-by: olga.milovskaya@oracle.com
author snazarki
date Wed, 29 Jul 2015 18:08:43 +0300
parents dd3123ec4c0d
children 6a6eda574d4e
files src/share/classes/com/oracle/dio/utils/Utils.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/utils/Utils.java	Wed Jul 29 18:08:05 2015 +0300
+++ b/src/share/classes/com/oracle/dio/utils/Utils.java	Wed Jul 29 18:08:43 2015 +0300
@@ -207,6 +207,7 @@
     }
 
     public static String[] parseDevicePermissionName(String name) {
+        name = name.trim();
         String[] ret = new String[2];
         int idx = -1;
         while (-1 != (idx = name.indexOf(':', idx + 1))) {