Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
* scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
* gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
* java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
* java/lang/Math.java: New override file.
* java/lang/Character.java: Merged from Classpath.
(start, end): Now 'int's.
(canonicalName): New field.
(CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
(UnicodeBlock): Added argument.
(of): New overload.
(forName): New method.
Updated unicode blocks.
(sets): Updated.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r111942
This commit is contained in:
@@ -157,6 +157,23 @@ public class DefaultPersistenceDelegate extends PersistenceDelegate
|
||||
protected void initialize(Class type, Object oldInstance, Object newInstance,
|
||||
Encoder out)
|
||||
{
|
||||
// Calling the supertype's implementation of initialize makes it
|
||||
// possible that descendants of classes like AbstractHashMap
|
||||
// or Hashtable are serialized correctly. This mechanism grounds on
|
||||
// two other facts:
|
||||
// * Each class which has not registered a special purpose
|
||||
// PersistenceDelegate is handled by a DefaultPersistenceDelegate
|
||||
// instance.
|
||||
// * PersistenceDelegate.initialize() is implemented in a way that it
|
||||
// calls the initialize method of the superclass' persistence delegate.
|
||||
super.initialize(type, oldInstance, newInstance, out);
|
||||
|
||||
// Suppresses the writing of property setting statements when this delegate
|
||||
// is not used for the exact instance type. By doing so the following code
|
||||
// is called only once per object.
|
||||
if (type != oldInstance.getClass())
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
PropertyDescriptor[] propertyDescs = Introspector.getBeanInfo(
|
||||
|
||||
Reference in New Issue
Block a user