This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
patch to libjava converting 0 to RawData
- From: Per Bothner <per at bothner dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 09 Mar 2002 09:25:25 -0800
- Subject: patch to libjava converting 0 to RawData
I checked in the following obvious patches to the trunk and the
3.1 branch. They are needed for the parse.y type-checking patches
I posted yesterday - and which I also just checked in.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
2002-03-09 Per Bothner <per@bothner.com>
* gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0.
* gnu/gcj/xlib/XImage.java: Likewise.
* gnu/gcj/xlib/XColor.java: Likewise.
Index: WindowAttributes.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/xlib/WindowAttributes.java,v
retrieving revision 1.1
diff -u -r1.1 WindowAttributes.java
--- WindowAttributes.java 2000/10/22 17:46:09 1.1
+++ WindowAttributes.java 2002/03/09 06:40:33
@@ -45,8 +45,8 @@
{
WindowAttributes attributes = (WindowAttributes) super.clone();
// In case of an exception before the stucture is copied.
- attributes.in = 0;
- attributes.out = 0;
+ attributes.in = null;
+ attributes.out = null;
// FIXME: do anything else?
@@ -77,13 +77,13 @@
* Reference to XWindowAttribute structure containing attributes
* read from a window.
*/
- RawData in = 0;
+ RawData in = null;
/**
* Reference to XSetWindowAttribute structure containing attributes
* to be applied to a window.
*/
- RawData out = 0;
+ RawData out = null;
long mask;
Index: XColor.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/xlib/XColor.java,v
retrieving revision 1.1
diff -u -r1.1 XColor.java
--- XColor.java 2000/10/22 17:46:09 1.1
+++ XColor.java 2002/03/09 06:40:33
@@ -38,5 +38,5 @@
public final native byte getFlags();
public final native long getPixelValue();
- RawData structure = 0;
+ RawData structure = null;
}
Index: XImage.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/xlib/XImage.java,v
retrieving revision 1.2
diff -u -r1.2 XImage.java
--- XImage.java 2001/12/10 07:59:47 1.2
+++ XImage.java 2002/03/09 06:40:34
@@ -141,7 +141,7 @@
protected native void finalize();
boolean ownsData = false;
- RawData structure = 0;
+ RawData structure = null;
public final native int getWidth();
public final native int getHeight();