Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2303

[storm-opentsdb] Fix list invariant issue for JDK 7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 1.1.0
    • Fix Version/s: 2.0.0, 1.1.0
    • Component/s: storm-opentsdb
    • Labels:
      None

      Description

      From STORM-2297 I also fixed an issue where storm-opentsdb refers TupleOpenTsdbDatapointMapper (implemented one) to List/Iterable, not ITupleOpenTsdbDatapointMapper (interface).
      I just replaced TupleOpenTsdbDatapointMapper to ITupleOpenTsdbDatapointMapper, and it works with JDK 8, but later I realized it doesn't work with JDK 7 because generic is invariant.

      While I don't know why it worked with JDK 8 (I googled about generic covariance change on JDK 8 but no luck.) it should be fixed.

        Attachments

          Activity

            People

            • Assignee:
              kabhwan Jungtaek Lim
              Reporter:
              kabhwan Jungtaek Lim
            • Votes:
              0 Vote for this issue
              Watchers:
              1 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
                1h