changeset 10197:08a89ab01595

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 Thu, 16 Oct 2014 16:30:56 +0400
parents 059b95b66b7a
children ac3881c06016
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	Thu Oct 16 14:14:32 2014 +0400
+++ b/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java	Thu Oct 16 16:30:56 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;
             }