[ https://issues.apache.org/jira/browse/LUCENE-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe Schindler updated LUCENE-1901: ---------------------------------- Description: If you look at the code from equals(), I think it misses this check : other.termLength==this.termLength This check must be before the comparison of the arrays. was: If you look at the code from equals(), I think it misses this check : "AX".equals("A"); since it does not check if the termLength() are different. > TermAttributeImpl.equals() does not check termLength > ---------------------------------------------------- > > Key: LUCENE-1901 > URL: https://issues.apache.org/jira/browse/LUCENE-1901 > Project: Lucene - Java > Issue Type: Bug > Components: Analysis > Affects Versions: 2.9 > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 2.9 > > Attachments: LUCENE-1901.patch > > > If you look at the code from equals(), I think it misses this check : > other.termLength==this.termLength > This check must be before the comparison of the arrays. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org