mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 04:30:06 +00:00
8058653: [TEST_BUG] Test java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with OutOfMemoryError
Reviewed-by: serb, prr
This commit is contained in:
parent
2d52d7e64d
commit
f07521a354
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user