8159898: Negative array size in java/beans/Introspector/Test8027905.java
Reviewed-by: alexsch, yan
--- a/jdk/test/java/awt/Window/OwnedWindowsLeak/OwnedWindowsLeak.java Tue Aug 16 22:10:12 2016 +0300
+++ b/jdk/test/java/awt/Window/OwnedWindowsLeak/OwnedWindowsLeak.java Tue Aug 16 23:07:35 2016 +0300
@@ -27,16 +27,14 @@
@bug 6758673
@summary Tests that windows are removed from owner's child windows list
@author art: area=awt.toplevel
- @run main OwnedWindowsLeak
+ @run main/othervm -mx128m OwnedWindowsLeak
*/
-import java.awt.*;
-import java.awt.event.*;
-
-import java.lang.ref.*;
-import java.lang.reflect.*;
-
-import java.util.*;
+import java.awt.Frame;
+import java.awt.Window;
+import java.lang.ref.WeakReference;
+import java.lang.reflect.Field;
+import java.util.Vector;
public class OwnedWindowsLeak
{
--- a/jdk/test/java/beans/Introspector/Test8027905.java Tue Aug 16 22:10:12 2016 +0300
+++ b/jdk/test/java/beans/Introspector/Test8027905.java Tue Aug 16 23:07:35 2016 +0300
@@ -28,6 +28,7 @@
* @bug 8027905
* @summary Tests that GC does not affect a property type
* @author Sergey Malenkov
+ * @run main/othervm -mx16m Test8027905
*/
public class Test8027905 {