Index: src/java/org/apache/lucene/analysis/tokenattributes/CharTermAttributeImpl.java =================================================================== --- src/java/org/apache/lucene/analysis/tokenattributes/CharTermAttributeImpl.java (revision 966945) +++ src/java/org/apache/lucene/analysis/tokenattributes/CharTermAttributeImpl.java (working copy) @@ -245,8 +245,18 @@ public Object clone() { CharTermAttributeImpl t = (CharTermAttributeImpl)super.clone(); // Do a deep clone - t.termBuffer = termBuffer.clone(); + + if (this.termBuffer.length >= 150 && this.termBuffer.length*0.75 <= this.termLength) { + t.termBuffer = termBuffer.clone(); + + } else { + t.termBuffer = new char[this.termLength]; + System.arraycopy(this.termBuffer, 0, t.termBuffer, 0, this.termLength); + + } + return t; + } @Override