[prev in list] [next in list] [prev in thread] [next in thread]
List: openorb-commits
Subject: [openorb-commits] CVS: PersistentStateService/src/main/org/openorb/pss/connector/memory MemoryIterat
From: Lars_Kühne <lkuehne () users ! sourceforge ! net>
Date: 2004-11-16 9:04:28
Message-ID: E1CTzGG-0000YO-Bu () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/openorb/PersistentStateService/src/main/org/openorb/pss/connector/memory
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2102/src/main/org/openorb/pss/connector/memory
Modified Files:
MemoryIterator.java
Log Message:
Fixed ArrayIndexOutOfBoundsException in MemoryIterator.detach()
Index: MemoryIterator.java
===================================================================
RCS file: /cvsroot/openorb/PersistentStateService/src/main/org/openorb/pss/connector/memory/MemoryIterator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- MemoryIterator.java 10 Feb 2004 21:19:16 -0000 1.5
+++ MemoryIterator.java 16 Nov 2004 09:04:23 -0000 1.6
@@ -45,10 +45,7 @@
*/
public boolean hasMoreElements()
{
- if ( _index < _incarnations.length )
- return true;
-
- return false;
+ return ( _index < _incarnations.length );
}
/**
@@ -75,7 +72,14 @@
*/
public org.omg.CosPersistentState.StorageObject detach()
{
- return ( org.omg.CosPersistentState.StorageObject ) _incarnations[ _index ];
+ if ( _index < _incarnations.length )
+ {
+ return ( org.omg.CosPersistentState.StorageObject ) _incarnations[ \
_index ]; + }
+ else
+ {
+ return null;
+ }
}
/**
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
openorb-commits mailing list
openorb-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openorb-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic