Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6266

[Java] Resolve the ambiguous method overload in RangeEqualsVisitor

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m