lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Whipple (JIRA)" <>
Subject [jira] [Created] (LUCENE-7926) Unsafe type cast in flexible parser QueryNodeImpl
Date Thu, 10 Aug 2017 15:31:00 GMT
Matt Whipple created LUCENE-7926:

             Summary: Unsafe type cast in flexible parser QueryNodeImpl
                 Key: LUCENE-7926
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Matt Whipple
            Priority: Trivial

{{org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImplL67}} casts the argument
to {{QueryNodeImpl}} although the rest of the code is written against the {{QueryNode}} interface.
 This blows up in cases where a non-inheriting implementation is passed (such as using a wrapper/decorator

The relevant {{setParent}} method does not exist on the interface, so the most backwards compatible
short term fix would be to wrap the cast in a conditional to ensure it is safe.

Path enclosed...

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message