Liya Fan created ARROW-6266:
-------------------------------
Summary: [Java] Resolve the ambiguous method overload in
RangeEqualsVisitor
Key: ARROW-6266
URL: https://issues.apache.org/jira/browse/ARROW-6266
Project: Apache Arrow
Issue Type: Bug
Components: Java
Reporter: Liya Fan
Assignee: Liya Fan
In RangeEqualsVisitor, there are overload methods for both super class and sub
class. This will lead to unexpected behavior.
For example, if we call RangeEqualsVisitor#visit(v), where v is a fixed width
vector, the method actually called may be visit(ValueVector), which is
unexpected.
In general, in the visitor pattern, it is not a good idea to support method
overload for both super class and sub-class as parameters.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)