[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: Class.pd is transient
From: |
Anthony Green |
Subject: |
[cp-patches] Patch: Class.pd is transient |
Date: |
Wed, 14 Sep 2005 17:41:04 -0700 |
FindBugs is complaining that Class.pd will mess up serialization.
I don't know if this is the best fix. Comments?
AG
2005-09-14 Anthony Green <address@hidden>
* java/lang/Class.java (pd): ProtectionDomain is not serializable.
Make this field transient.
Index: java/lang/Class.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Class.java,v
retrieving revision 1.39
diff -u -r1.39 Class.java
--- java/lang/Class.java 13 Sep 2005 21:25:11 -0000 1.39
+++ java/lang/Class.java 14 Sep 2005 23:45:41 -0000
@@ -101,7 +101,7 @@
/** The class signers. */
private Object[] signers = null;
/** The class protection domain. */
- private final ProtectionDomain pd;
+ private final transient ProtectionDomain pd;
/* We use an inner class, so that Class doesn't have a static initializer */
private static final class StaticData
- [cp-patches] Patch: Class.pd is transient,
Anthony Green <=