You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Liya Fan (JIRA)" <ji...@apache.org> on 2019/08/16 06:37:00 UTC
[jira] [Created] (ARROW-6266) [Java] Resolve the ambiguous method
overload in RangeEqualsVisitor
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)