8026705: [TEST_BUG] java/beans/Introspector/TestTypeResolver.java failed
authormalenkov
Fri, 25 Oct 2013 16:42:02 +0400
changeset 21274 238365b3e98a
parent 21273 802d3ddab4ec
child 21275 38d2199adb1a
8026705: [TEST_BUG] java/beans/Introspector/TestTypeResolver.java failed Reviewed-by: art, jfranck
jdk/test/java/beans/Introspector/TestTypeResolver.java
--- a/jdk/test/java/beans/Introspector/TestTypeResolver.java	Fri Oct 25 13:41:19 2013 +0400
+++ b/jdk/test/java/beans/Introspector/TestTypeResolver.java	Fri Oct 25 16:42:02 2013 +0400
@@ -115,6 +115,8 @@
         // by private implementations of the various Type interfaces
         if (expect.equals(t) && t.equals(expect))
             System.out.println(", as expected");
+        else if ((expect.equals(t) || t.equals(expect)) && expect.toString().equals(t.toString()))
+            System.out.println(", as workaround of the 8023301 bug");
         else {
             System.out.println(" BUT SHOULD BE " + expect);
             failedCases.add(c);