提交 ae805215 authored 作者: Thomas Mueller's avatar Thomas Mueller

The Shell tool threw a IndexOutOfBoundsException after 20 statements.

上级 e35e035d
...@@ -18,7 +18,8 @@ Change Log ...@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>When using the small version of H2 ('jarClient'), the first call to <ul><li>The Shell tool threw a IndexOutOfBoundsException after 20 statements.
</li><li>When using the small version of H2 ('jarClient'), the first call to
Connection.createBlob (or similar) could throw a ClassNotFoundException Connection.createBlob (or similar) could throw a ClassNotFoundException
because the file org.h2.store.fs.FileSystemZip is not included. This missing class because the file org.h2.store.fs.FileSystemZip is not included. This missing class
is now ignored. is now ignored.
......
...@@ -285,7 +285,7 @@ public class Shell extends Tool implements Runnable { ...@@ -285,7 +285,7 @@ public class Shell extends Tool implements Runnable {
if (end) { if (end) {
if (addToHistory) { if (addToHistory) {
history.add(0, statement); history.add(0, statement);
if (history.size() >= HISTORY_COUNT) { if (history.size() > HISTORY_COUNT) {
history.remove(HISTORY_COUNT); history.remove(HISTORY_COUNT);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论