changeset 10709:b66ccf78284a

8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with OutOfMemoryError Reviewed-by: serb, prr Contributed-by: srinivasan.raghavan@oracle.com
author kshefov
date Wed, 24 Sep 2014 14:19:25 +0400
parents 185c0f85cbfb
children 5ad4c46dfa35
files test/java/awt/Graphics2D/DrawString/DrawStringCrash.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java	Wed Sep 24 11:55:36 2014 +0200
+++ b/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;
             }