changeset 191:9459baa5fe9f

8130660: OpenIDTests fail due to IAE: -1 Summary: MMIOPermission has long type as Address. Fix method to verify long Reviewed-by: snazarki Contributed-by: olga.milovskaya@oracle.com
author snazarki
date Tue, 07 Jul 2015 13:10:20 +0300
parents 8a4f5b92a3bf
children e594b663ed53
files src/share/classes/com/oracle/dio/utils/Utils.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/utils/Utils.java	Mon Jul 06 20:09:25 2015 +0400
+++ b/src/share/classes/com/oracle/dio/utils/Utils.java	Tue Jul 07 13:10:20 2015 +0300
@@ -277,7 +277,7 @@
             return false;
         }
         try {
-            return Integer.parseInt(str.substring(0, idx), 16) >=0
+            return Long.parseLong(str.substring(0, idx), 16) >=0
                 && Integer.parseInt(str.substring(idx + 1), 16) >= 0;
         } catch (NumberFormatException e) {
             return false;