Index: main/java/java/beans/PersistenceDelegate.java =================================================================== --- main/java/java/beans/PersistenceDelegate.java (revision 469111) +++ main/java/java/beans/PersistenceDelegate.java (working copy) @@ -33,8 +33,16 @@ .getSuperclass()); if (pd != null) { - pd.initialize(type, oldInstance, newInstance, out); + try { + pd.initialize(type, oldInstance, newInstance, out); + } catch (StackOverflowError err) { + // circular redundancy + // we should catch in order to be compatilbe with RI + } } + } else { + throw new NullPointerException( + Messages.getString("beans.4C")); //$NON-NLS-1$ } } Index: main/java/org/apache/harmony/beans/internal/nls/messages.properties =================================================================== --- main/java/org/apache/harmony/beans/internal/nls/messages.properties (revision 469111) +++ main/java/org/apache/harmony/beans/internal/nls/messages.properties (working copy) @@ -91,4 +91,5 @@ beans.49=Child cannot implement both BeanContextChild and BeanContextProxy beans.4A=newInstance is null beans.4B=type is null +beans.4C=encoder is null