field must be interned during serialization read process

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Scott Ganyo 2002-02-15 13:13:19 +00:00
parent 33a4c8c325
commit 64adb57449
1 changed files with 7 additions and 0 deletions

View File

@ -119,4 +119,11 @@ public final class Term implements java.io.Serializable {
public final String toString() {
return "Term<" + field + ":" + text + ">";
}
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, ClassNotFoundException
{
in.defaultReadObject();
field = field.intern();
}
}