SUGGESTED FIX
------- FocusEvent.java -------
*** /tmp/sccs.8layxY Thu Oct 10 15:05:18 2002
--- FocusEvent.java Thu Oct 10 15:02:19 2002
***************
*** 13,23 ****
import sun.awt.AppContext;
import sun.awt.SunToolkit;
- import java.io.Serializable;
- import java.io.ObjectOutputStream;
- import java.io.ObjectInputStream;
- import java.io.IOException;
-
/**
* A low-level event which indicates that a Component has gained or lost the
* input focus. This low-level event is generated by a Component (such as a
--- 13,18 ----
***************
*** 90,100 ****
* with a native application, a Java application in a different VM, or with
* no other Component, then the opposite Component is null.
*
- * @serial
* @see #getOppositeComponent
* @since 1.4
*/
! Component opposite;
/*
* JDK 1.1 serialVersionUID
--- 85,94 ----
* with a native application, a Java application in a different VM, or with
* no other Component, then the opposite Component is null.
*
* @see #getOppositeComponent
* @since 1.4
*/
! transient Component opposite;
/*
* JDK 1.1 serialVersionUID
***************
*** 212,239 ****
",opposite=" + getOppositeComponent();
}
- /**
- * Reads serializable fields from stream. We need to do it explicitly
- * to make sure opposite component deserializes to null even if it
- * is present in the stream.
- */
- private void readObject(ObjectInputStream s)
- throws ClassNotFoundException, IOException {
- ObjectInputStream.GetField f = s.readFields();
- temporary = f.get("temporary", false);
- opposite = null;
- }
-
- /**
- * Writes serializable fields to stream. We need to do it explicitly
- * to avoid serializing opposite component.
- */
- private void writeObject(ObjectOutputStream s)
- throws IOException {
- ObjectOutputStream.PutField f = s.putFields();
- f.put("temporary", temporary);
- f.put("opposite", (Component)null);
- s.writeFields();
- }
-
}
--- 206,209 ----
------- WindowEvent.java -------
*** /tmp/sccs.RLaWxY Thu Oct 10 15:05:36 2002
--- WindowEvent.java Thu Oct 10 15:03:54 2002
***************
*** 137,147 ****
* native application, a Java application in a different VM, or with no
* other Window, null is returned.
*
- * @serial
* @see #getOppositeWindow
* @since 1.4
*/
! Window opposite;
/**
* TBS
--- 137,146 ----
* native application, a Java application in a different VM, or with no
* other Window, null is returned.
*
* @see #getOppositeWindow
* @since 1.4
*/
! transient Window opposite;
/**
* TBS
|