8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with OutOfMemoryError
authorkshefov
Wed, 24 Sep 2014 14:19:25 +0400
changeset 26730 f71a6d13260c
parent 26729 58ee225357e9
child 26731 abc6b733e3ab
8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with OutOfMemoryError Reviewed-by: serb, prr Contributed-by: srinivasan.raghavan@oracle.com
jdk/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java
--- a/jdk/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java	Wed Sep 24 11:55:36 2014 +0200
+++ b/jdk/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java	Wed Sep 24 14:19:25 2014 +0400
@@ -52,7 +52,7 @@
         Graphics2D g2d = bi.createGraphics();
         while (len < maxLen) {
             try {
-                g2d.drawString(s, 20, 20);
+                g2d.drawString(sb.toString(), 20, 20);
             } catch (OutOfMemoryError e) {
                 return;
             }