Skip to content

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

Closed

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.

Activity

  1. asfimport commented on Aug 19, 2019

    @asfimport
    Author

    Pindikura Ravindra / @pravindra:
    Issue resolved by pull request 5100
    #5100

  2. added this to the 0.15.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Component: JavaPriority: BlockerType: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions