changeset 17576:cc9d1ec8fd5f

8159898: Negative array size in java/beans/Introspector/Test8027905.java Reviewed-by: alexsch, yan
author serb
date Tue, 16 Aug 2016 23:07:35 +0300
parents c07be59d7160
children b209cf7b5b91
files test/java/awt/Window/OwnedWindowsLeak/OwnedWindowsLeak.java test/java/beans/Introspector/Test8027905.java
diffstat 2 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/Window/OwnedWindowsLeak/OwnedWindowsLeak.java	Tue Aug 16 22:10:12 2016 +0300
+++ b/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/test/java/beans/Introspector/Test8027905.java	Tue Aug 16 22:10:12 2016 +0300
+++ b/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 {