# HG changeset patch
# User malenkov
# Date 1233834490 -10800
# Node ID 77898184e343badad64892ac28331fa7d3b8eb3f
# Parent 3aa9107f1b72802ceb176a18e763b4835bf6d23d
4769844: classes in java.beans that are serializable but don't define serialVersionUID
Reviewed-by: peterz, rupashka
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/IndexedPropertyChangeEvent.java
--- a/jdk/src/share/classes/java/beans/IndexedPropertyChangeEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/IndexedPropertyChangeEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -41,6 +41,7 @@
* @author Mark Davidson
*/
public class IndexedPropertyChangeEvent extends PropertyChangeEvent {
+ private static final long serialVersionUID = -320227448495806870L;
private int index;
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/IntrospectionException.java
--- a/jdk/src/share/classes/java/beans/IntrospectionException.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/IntrospectionException.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1996-1998 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -36,6 +36,7 @@
public
class IntrospectionException extends Exception {
+ private static final long serialVersionUID = -3728150539969542619L;
/**
* Constructs an IntrospectionException
with a
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/PropertyChangeEvent.java
--- a/jdk/src/share/classes/java/beans/PropertyChangeEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/PropertyChangeEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1996-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@
*/
public class PropertyChangeEvent extends java.util.EventObject {
+ private static final long serialVersionUID = 7042693688939648123L;
/**
* Constructs a new PropertyChangeEvent
.
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/PropertyVetoException.java
--- a/jdk/src/share/classes/java/beans/PropertyVetoException.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/PropertyVetoException.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1996-1998 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,7 @@
public
class PropertyVetoException extends Exception {
-
+ private static final long serialVersionUID = 129596057694162164L;
/**
* Constructs a PropertyVetoException
with a
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/beancontext/BeanContextEvent.java
--- a/jdk/src/share/classes/java/beans/beancontext/BeanContextEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -48,6 +48,7 @@
*/
public abstract class BeanContextEvent extends EventObject {
+ private static final long serialVersionUID = 7267998073569045052L;
/**
* Contruct a BeanContextEvent
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java
--- a/jdk/src/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -55,6 +55,7 @@
* @see java.beans.beancontext.BeanContextMembershipListener
*/
public class BeanContextMembershipEvent extends BeanContextEvent {
+ private static final long serialVersionUID = 3499346510334590959L;
/**
* Contruct a BeanContextMembershipEvent
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java
--- a/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -40,6 +40,7 @@
*/
public class BeanContextServiceAvailableEvent extends BeanContextEvent {
+ private static final long serialVersionUID = -5333985775656400778L;
/**
* Construct a BeanContextAvailableServiceEvent
.
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java
--- a/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2004 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -37,6 +37,7 @@
*
BeanContextServiceEvent
.
diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java
--- a/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java Wed Feb 04 18:48:24 2009 +0300
+++ b/jdk/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java Thu Feb 05 14:48:10 2009 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright 1998-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -60,6 +60,7 @@
public class BeanContextServicesSupport extends BeanContextSupport
implements BeanContextServices {
+ private static final long serialVersionUID = -8494482757288719206L;
/**
* @@ -594,6 +595,7 @@ */ protected static class BCSSServiceProvider implements Serializable { + private static final long serialVersionUID = 861278251667444782L; BCSSServiceProvider(Class sc, BeanContextServiceProvider bcsp) { super(); diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/sun/beans/editors/ColorEditor.java --- a/jdk/src/share/classes/sun/beans/editors/ColorEditor.java Wed Feb 04 18:48:24 2009 +0300 +++ b/jdk/src/share/classes/sun/beans/editors/ColorEditor.java Thu Feb 05 14:48:10 2009 +0300 @@ -1,5 +1,5 @@ /* - * Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,6 +29,8 @@ import java.beans.*; public class ColorEditor extends Panel implements PropertyEditor { + private static final long serialVersionUID = 1781257185164716054L; + public ColorEditor() { setLayout(null); diff -r 3aa9107f1b72 -r 77898184e343 jdk/src/share/classes/sun/beans/editors/FontEditor.java --- a/jdk/src/share/classes/sun/beans/editors/FontEditor.java Wed Feb 04 18:48:24 2009 +0300 +++ b/jdk/src/share/classes/sun/beans/editors/FontEditor.java Thu Feb 05 14:48:10 2009 +0300 @@ -1,5 +1,5 @@ /* - * Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,6 +29,7 @@ import java.beans.*; public class FontEditor extends Panel implements java.beans.PropertyEditor { + private static final long serialVersionUID = 6732704486002715933L; public FontEditor() { setLayout(null);