Open michail-prusakov opened 12 years ago
When adding to the front of the list, need to update the Root's pointer to first. Need to change LinkedList2.java:
421: Root r = getRoot(); 422: r.size++; 423: db.update(rootRecid, r, ROOT_SERIALIZER);
421: Root r = getRoot(); ADD: if (prev == 0) r.first = recid; 422: r.size++; 423: db.update(rootRecid, r, ROOT_SERIALIZER);
Consider the following unit test:
import java.util.List;
import org.apache.jdbm.DB; import org.apache.jdbm.DBMaker; import org.junit.Test;
public class JDBMTester {
}