mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8189201: [macosx] NotSerializableException during JFrame with MenuBar serialization
Reviewed-by: serb, prr
This commit is contained in:
parent
8275c3907b
commit
01a0105416
4 changed files with 81 additions and 4 deletions
|
@ -9310,7 +9310,9 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
|||
* when shown/hidden..
|
||||
* @since 1.3
|
||||
*/
|
||||
protected class AccessibleAWTComponentHandler implements ComponentListener {
|
||||
protected class AccessibleAWTComponentHandler implements ComponentListener, Serializable {
|
||||
private static final long serialVersionUID = -1009684107426231869L;
|
||||
|
||||
public void componentHidden(ComponentEvent e) {
|
||||
if (accessibleContext != null) {
|
||||
accessibleContext.firePropertyChange(
|
||||
|
@ -9340,7 +9342,9 @@ public abstract class Component implements ImageObserver, MenuContainer,
|
|||
* when focus events happen
|
||||
* @since 1.3
|
||||
*/
|
||||
protected class AccessibleAWTFocusHandler implements FocusListener {
|
||||
protected class AccessibleAWTFocusHandler implements FocusListener, Serializable {
|
||||
private static final long serialVersionUID = 3150908257351582233L;
|
||||
|
||||
public void focusGained(FocusEvent event) {
|
||||
if (accessibleContext != null) {
|
||||
accessibleContext.firePropertyChange(
|
||||
|
|
|
@ -40,6 +40,7 @@ import java.io.ObjectOutputStream;
|
|||
import java.io.ObjectStreamField;
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.security.AccessController;
|
||||
|
@ -3849,7 +3850,9 @@ public class Container extends Component {
|
|||
* @since 1.3
|
||||
*/
|
||||
protected class AccessibleContainerHandler
|
||||
implements ContainerListener {
|
||||
implements ContainerListener, Serializable {
|
||||
private static final long serialVersionUID = -480855353991814677L;
|
||||
|
||||
public void componentAdded(ContainerEvent e) {
|
||||
Component c = e.getChild();
|
||||
if (c != null && c instanceof Accessible) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue