You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2009/09/08 21:57:57 UTC
[jira] Commented: (LUCENE-1901) TermAttributeImpl.equals() does not
check termLength
[ https://issues.apache.org/jira/browse/LUCENE-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752698#action_12752698 ]
Uwe Schindler commented on LUCENE-1901:
---------------------------------------
You are right, I will fix it.
The simpliest is to check if (termlength!=o.thermLength) before the for-loop. The code is then equals to Token.java (I think this was a copy'n'paste bug).
> 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
>
>
> 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.
--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org