lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1694) Query#mergeBooleanQueries argument should be of type BooleanQuery[] instead of Query[]
Date Tue, 16 Jun 2009 11:37:07 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon Willnauer updated LUCENE-1694:
------------------------------------

    Priority: Minor  (was: Major)

> Query#mergeBooleanQueries argument should be of type BooleanQuery[] instead of Query[]
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1694
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1694
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Simon Willnauer
>            Priority: Minor
>             Fix For: 2.9
>
>
> The method #mergeBooleanQueries accepts Query[] and casts elements to BooleanQuery without
checking. This will guarantee a ClassCastException if it is not a boolean query. We should
enforce this by changing the signature. This won't really break back compat. as it only works
with instances of BooleanQuery.

-- 
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


Mime
View raw message