changeset 1126:62a84e564a8c

4769844: classes in java.beans that are serializable but don't define serialVersionUID Reviewed-by: peterz, rupashka
author malenkov
date Thu, 05 Feb 2009 14:48:10 +0300
parents 442b563e57c6
children 27dabbdfdcac
files src/share/classes/java/beans/IndexedPropertyChangeEvent.java src/share/classes/java/beans/IntrospectionException.java src/share/classes/java/beans/PropertyChangeEvent.java src/share/classes/java/beans/PropertyVetoException.java src/share/classes/java/beans/beancontext/BeanContextEvent.java src/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java src/share/classes/sun/beans/editors/ColorEditor.java src/share/classes/sun/beans/editors/FontEditor.java
diffstat 11 files changed, 24 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/beans/IndexedPropertyChangeEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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;
 
--- a/src/share/classes/java/beans/IntrospectionException.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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 <code>IntrospectionException</code> with a
--- a/src/share/classes/java/beans/PropertyChangeEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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 <code>PropertyChangeEvent</code>.
--- a/src/share/classes/java/beans/PropertyVetoException.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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 <code>PropertyVetoException</code> with a
--- a/src/share/classes/java/beans/beancontext/BeanContextEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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
--- a/src/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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
--- a/src/share/classes/java/beans/beancontext/BeanContextServiceAvailableEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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 <code>BeanContextAvailableServiceEvent</code>.
--- a/src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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 @@
  * </p>
  */
 public class BeanContextServiceRevokedEvent extends BeanContextEvent {
+    private static final long serialVersionUID = -1295543154724961754L;
 
     /**
      * Construct a <code>BeanContextServiceEvent</code>.
--- a/src/share/classes/java/beans/beancontext/BeanContextServicesSupport.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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;
 
     /**
      * <p>
@@ -594,6 +595,7 @@
          */
 
         protected static class BCSSServiceProvider implements Serializable {
+            private static final long serialVersionUID = 861278251667444782L;
 
             BCSSServiceProvider(Class sc, BeanContextServiceProvider bcsp) {
                 super();
--- a/src/share/classes/sun/beans/editors/ColorEditor.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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);
 
--- a/src/share/classes/sun/beans/editors/FontEditor.java	Wed Feb 04 18:48:24 2009 +0300
+++ b/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);