DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7845>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7845 org.apache.avalon.excalibur.collections.VariableSizeBuffer loses data on resize ------- Additional Comments From [EMAIL PROTECTED] 2002-04-08 16:28 ------- I think this one is already fixed: http://marc.theaimsgroup.com/?l=avalon-dev&m=101526294623943&w=2 and: http://marc.theaimsgroup.com/?l=avalon-dev&m=101529818722010&w=2 Could you check if the implementation that causes the error looks like this: public final void add( final Object o ) { ... if( size() + 1 >= m_buffer.length ) { Object[] tmp = new Object[ ( ( m_buffer.length - 1 ) * 2 ) + 1 ]; int j = 0; for( int i = m_head; i != m_tail; ) { tmp[ j ] = m_buffer[ i ]; m_buffer[ i ] = null; j++; i++; if( i == m_buffer.length ) { i = 0; } } m_buffer = tmp; m_head = 0; m_tail = j; } ... } If not, then the bug should be fixed. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>