提交 9e698621 编写于 作者: K kshefov

8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java...

8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with OutOfMemoryError
Reviewed-by: serb, prr
Contributed-by: srinivasan.raghavan@oracle.com
上级 a827199f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册