8197944: Condy tests fails on Windows
authorpsandoz
Tue, 13 Mar 2018 15:29:55 -0700
changeset 49387 98e7a2c315a9
parent 49386 d89e98d85841
child 49388 ec9091426557
child 49390 95f0b54a3024
8197944: Condy tests fails on Windows Reviewed-by: dholmes
test/jdk/ProblemList.txt
test/jdk/java/lang/invoke/condy/CondyInterfaceWithOverpassMethods.java
test/jdk/java/lang/invoke/condy/CondyRepeatFailedResolution.java
test/jdk/java/lang/invoke/condy/CondyReturnPrimitiveTest.java
--- a/test/jdk/ProblemList.txt	Tue Mar 13 20:06:34 2018 +0100
+++ b/test/jdk/ProblemList.txt	Tue Mar 13 15:29:55 2018 -0700
@@ -493,9 +493,6 @@
 
 java/lang/String/nativeEncoding/StringPlatformChars.java        8182569 windows-all,solaris-all
 
-java/lang/invoke/condy/CondyRepeatFailedResolution.java         8197944 windows-all
-java/lang/invoke/condy/CondyReturnPrimitiveTest.java            8197944 windows-all
-
 ############################################################################
 
 # jdk_instrument
--- a/test/jdk/java/lang/invoke/condy/CondyInterfaceWithOverpassMethods.java	Tue Mar 13 20:06:34 2018 +0100
+++ b/test/jdk/java/lang/invoke/condy/CondyInterfaceWithOverpassMethods.java	Tue Mar 13 15:29:55 2018 -0700
@@ -34,16 +34,11 @@
 import jdk.experimental.bytecode.BasicClassBuilder;
 import jdk.experimental.bytecode.Flag;
 import jdk.experimental.bytecode.TypedCodeBuilder;
-import org.testng.Assert;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
-import java.io.File;
-import java.io.FileOutputStream;
 import java.lang.invoke.MethodHandles;
 import java.lang.invoke.MethodType;
-import java.lang.reflect.Method;
-import java.util.concurrent.atomic.AtomicInteger;
 
 @Test
 public class CondyInterfaceWithOverpassMethods {
@@ -93,9 +88,6 @@
                                 ))
                 .build();
 
-        // For debugging purposes
-        new FileOutputStream(new File(genClassName + ".class")).write(byteArray);
-
         gc = MethodHandles.lookup().defineClass(byteArray);
     }
 
--- a/test/jdk/java/lang/invoke/condy/CondyRepeatFailedResolution.java	Tue Mar 13 20:06:34 2018 +0100
+++ b/test/jdk/java/lang/invoke/condy/CondyRepeatFailedResolution.java	Tue Mar 13 15:29:55 2018 -0700
@@ -39,8 +39,6 @@
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
-import java.io.File;
-import java.io.FileOutputStream;
 import java.lang.invoke.MethodHandles;
 import java.lang.invoke.MethodType;
 import java.lang.reflect.InvocationTargetException;
@@ -217,9 +215,6 @@
                                 ))
                 .build();
 
-        // For debugging purposes
-        new FileOutputStream(new File(genClassName + ".class")).write(byteArray);
-
         gc = MethodHandles.lookup().defineClass(byteArray);
     }
 
--- a/test/jdk/java/lang/invoke/condy/CondyReturnPrimitiveTest.java	Tue Mar 13 20:06:34 2018 +0100
+++ b/test/jdk/java/lang/invoke/condy/CondyReturnPrimitiveTest.java	Tue Mar 13 15:29:55 2018 -0700
@@ -39,8 +39,6 @@
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
-import java.io.File;
-import java.io.FileOutputStream;
 import java.lang.invoke.MethodHandles;
 import java.lang.invoke.MethodType;
 import java.lang.reflect.Method;
@@ -218,9 +216,6 @@
                                 ))
                 .build();
 
-        // For debugging purposes
-        new FileOutputStream(new File(genClassName + ".class")).write(byteArray);
-
         gc = MethodHandles.lookup().defineClass(byteArray);
     }