diff --git a/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java b/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java index a1eeb6b1a206ac38c4a9ff68ebba0cdcc701ecb3..de8a900b4e0f6b1bf0da9f195c6ba8afdc8ccd2d 100644 --- a/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java +++ b/test/java/awt/Graphics2D/DrawString/DrawStringCrash.java @@ -52,7 +52,7 @@ public class DrawStringCrash { Graphics2D g2d = bi.createGraphics(); while (len < maxLen) { try { - g2d.drawString(s, 20, 20); + g2d.drawString(sb.toString(), 20, 20); } catch (OutOfMemoryError e) { return; }