Patch: FYI: tiny GdkPixbufDecoder fix

Thomas Fitzsimmons fitzsim@redhat.com
Tue Dec 2 20:13:00 GMT 2003


Hi,

This bug was caught by jikes and missed by gcj. createBufferedImage, a
static method, was trying to create an instance of BufferedImageBuilder,
a non-static class.  I committed the patch to the trunk.

Tom

2003-12-02  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Make
	BufferedImageBuilder class static.


Index: gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
===================================================================
RCS file:
/cvs/gcc/gcc/libjava/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- gnu/java/awt/peer/gtk/GdkPixbufDecoder.java 12 Nov 2003 00:37:33
-0000      1.2
+++ gnu/java/awt/peer/gtk/GdkPixbufDecoder.java 2 Dec 2003 19:56:30
-0000       1.3
@@ -152,7 +152,7 @@
   // this ought to be fairly straightforward, but it does not appear
   // anywhere else I can find.
 
-  private class BufferedImageBuilder implements ImageConsumer
+  private static class BufferedImageBuilder implements ImageConsumer
   {
     BufferedImage bufferedImage;
     ColorModel defaultModel;




More information about the Java-patches mailing list