Skip to content

[Java] Resolve the ambiguous method overload in RangeEqualsVisitor #22650

@asfimport

Description

@asfimport

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.

Reporter: Liya Fan / @liyafan82
Assignee: Liya Fan / @liyafan82

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-6266. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions