changeset 181:1e2cf9f41b8b

8085803: Some tests of DIO VTS fail with java.lang.StackOverflowError Summary: This is partial fix, exception has gone but serialization is not yes done Reviewed-by: alkonsta
author snazarki
date Wed, 24 Jun 2015 12:50:46 +0300
parents a487953b6d66
children 5accb238f20b
files src/se/classes/com/oracle/dio/impl/Platform.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/impl/Platform.java	Mon Jun 22 17:10:30 2015 +0300
+++ b/src/se/classes/com/oracle/dio/impl/Platform.java	Wed Jun 24 12:50:46 2015 +0300
@@ -72,7 +72,7 @@
         try {
             return serialize(obj1).equals(serialize(obj2));
         } catch (IOException e) {
-            return Objects.equals(obj1, obj2);
+            return obj1 == obj2;
         }
     }
 
@@ -133,7 +133,7 @@
         try {
             return serialize(obj).hashCode();
         } catch (IOException e) {
-            return Objects.hashCode(obj);
+            return System.identityHashCode(obj);
         }
     }