You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/01/11 21:05:00 UTC

cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer ListProxy.java

brj         2003/01/11 12:05:00

  Modified:    src/java/org/apache/ojb/broker/accesslayer ListProxy.java
  Log:
  corrected some default implementations of ListInterface methods
  
  Revision  Changes    Path
  1.2       +5 -5      jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/ListProxy.java
  
  Index: ListProxy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/ListProxy.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ListProxy.java	11 Jan 2003 19:47:47 -0000	1.1
  +++ ListProxy.java	11 Jan 2003 20:05:00 -0000	1.2
  @@ -99,7 +99,7 @@
   	 */
   	public boolean addAll(int index, Collection c)
   	{
  -		return false;
  +		return getListData().addAll(index, c);
   	}
   
   	/**
  @@ -107,7 +107,7 @@
   	 */
   	public Object get(int index)
   	{
  -		return null;
  +		return getListData().get(index);
   	}
   
   	/**
  @@ -115,7 +115,7 @@
   	 */
   	public Object set(int index, Object element)
   	{
  -		return null;
  +		return getListData().set(index, element);
   	}
   
   	/**
  @@ -192,7 +192,7 @@
           }    
           else
           {
  -            throw new PersistenceBrokerException("loaded data is not a java.util.List");
  +            throw new PersistenceBrokerException("loaded data does not implement java.util.List");
           }
   		
   	}