8161902: [PIT][TEST_BUG]sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java compilation fails

Reviewed-by: prr
This commit is contained in:
Jayathirth D V 2016-07-23 02:08:17 +05:30 committed by Jayathirth D V
parent affafb79f4
commit c8c6407341

View File

@ -22,7 +22,7 @@
*/
/* @test
* @bug 8160421
* @bug 8160421 8161902
* @summary Test to check OffScreenImageSource handles case where
* imageComplete(ImageConsumer.SINGLEFRAMEDONE) unregisters.
* @run main/othervm ImageConsumerUnregisterTest
@ -35,7 +35,7 @@ public class ImageConsumerUnregisterTest extends javax.swing.JFrame {
public static void main(String[] args) throws Exception {
final java.awt.Component component = new TestBug8160421();
final java.awt.Component component = new ImageConsumerUnregisterTest();
// Redirect the System.err stream and verify there is no
// stacktrace printed
@ -59,7 +59,8 @@ public class ImageConsumerUnregisterTest extends javax.swing.JFrame {
System.setErr(obj);
if (!str.isEmpty()) {
throw new RuntimeException("Invalid imageComplete(STATICIMAGEDONE) call");
throw new RuntimeException("Invalid"
+ " imageComplete(STATICIMAGEDONE) call");
}
}
}