Update of /var/cvs/src/org/mmbase/bridge/implementation
In directory james.mmbase.org:/tmp/cvs-serv23761
Modified Files:
BasicList.java
Log Message:
catching exception in convert, because if not catched, and it occurs, you end
up in an infinite loop
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/bridge/implementation
Index: BasicList.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/bridge/implementation/BasicList.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- BasicList.java 30 Mar 2007 10:02:54 -0000 1.30
+++ BasicList.java 27 Feb 2008 11:47:26 -0000 1.31
@@ -18,7 +18,7 @@
* This is the base class for all basic implementations of the bridge lists.
*
* @author Pierre van Rooden
- * @version $Id: BasicList.java,v 1.30 2007/03/30 10:02:54 michiel Exp $
+ * @version $Id: BasicList.java,v 1.31 2008/02/27 11:47:26 michiel Exp $
*/
public class BasicList<E extends Comparable<? super E>> extends ArrayList<E>
implements BridgeList<E> {
@@ -54,10 +54,16 @@
return (E) o;
}
protected final E convert(Object o, int index) {
- E newO = convert(o);
+ E newO;
+ try {
+ newO = convert(o);
if (log.isDebugEnabled()) {
log.debug("Converted " + o.getClass() + " to " + newO.getClass() +
" in " + getClass());
}
+ } catch (Throwable t) {
+ log.warn(t);
+ newO = null;
+ }
if (newO != o) {
set(index, newO);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs