diff options
author | smallsql <smallsql> | 2012-03-10 15:52:49 +0400 |
---|---|---|
committer | smallsql <smallsql> | 2012-03-10 15:52:49 +0400 |
commit | 9a37b48dd87660774449260d75c5cf2e2578af95 (patch) | |
tree | a597029547ba999e5ca5ad24a77ae42629c1dbdb /openjdk/sun | |
parent | 8962a8920d2a37c0efc9ab6362e243b0e996e7e4 (diff) |
Fix a deadlock for TooltipImages which complete with a ImageObserver.FRAMEBITS instead with ImageObserver.ALLBITS. The problem occur with JDownloader.
Diffstat (limited to 'openjdk/sun')
-rw-r--r-- | openjdk/sun/awt/image/ImageRepresentation.java | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/openjdk/sun/awt/image/ImageRepresentation.java b/openjdk/sun/awt/image/ImageRepresentation.java index 92771953..962d46e0 100644 --- a/openjdk/sun/awt/image/ImageRepresentation.java +++ b/openjdk/sun/awt/image/ImageRepresentation.java @@ -30,11 +30,8 @@ import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.ImageConsumer; import java.awt.image.ImageObserver; -import java.util.Arrays; import java.util.Hashtable; -import com.sun.jdi.InvalidStackFrameException; - import cli.System.Drawing.Bitmap; import cli.System.Drawing.Imaging.BitmapData; import cli.System.Drawing.Imaging.ImageLockMode; @@ -328,10 +325,9 @@ public class ImageRepresentation extends ImageWatched implements ImageConsumer{ if (done) { image.getSource().removeConsumer(this); consuming = false; - - if (bimage == null) { - bimage = new BufferedImage(getBitmapRef()); - } + } + if (bimage == null ) { + bimage = new BufferedImage(getBitmapRef()); } availinfo |= info; notifyAll(); @@ -422,15 +418,4 @@ public class ImageRepresentation extends ImageWatched implements ImageConsumer{ | ImageObserver.FRAMEBITS | ImageObserver.ALLBITS); } - - /** - * Get the .NET Bitmap object. - */ - @cli.IKVM.Attributes.HideFromJavaAttribute.Annotation - public cli.System.Drawing.Bitmap getBitmap(){ - if( bitmap == null ){ - throw new IllegalStateException("Image not complete."); - } - return bitmap; - } } |