# HG changeset patch # User jdv # Date 1469219897 -19800 # Node ID e1aeb5f5a777621054eeed504fbfe5d1749981ae # Parent 6f3c43ceb8b30136b71224ebb994a5548c41e685 8161902: [PIT][TEST_BUG]sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java compilation fails Reviewed-by: prr Contributed-by: jayathirth.d.v@oracle.com diff -r 6f3c43ceb8b3 -r e1aeb5f5a777 jdk/test/sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java --- a/jdk/test/sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java Fri Jul 22 11:16:08 2016 -0700 +++ b/jdk/test/sun/awt/image/OffScreenImageSource/ImageConsumerUnregisterTest.java Sat Jul 23 02:08:17 2016 +0530 @@ -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 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 @@ System.setErr(obj); if (!str.isEmpty()) { - throw new RuntimeException("Invalid imageComplete(STATICIMAGEDONE) call"); + throw new RuntimeException("Invalid" + + " imageComplete(STATICIMAGEDONE) call"); } } }