Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-2171

Sqoop2: Incorrect basic type boxing with JDK1.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.99.5
    • Fix Version/s: 1.99.6
    • Component/s: sqoop2-test
    • Labels:
      None

      Description

      After commit: https://github.com/apache/sqoop/commit/3ba01bcf8320c5d8b4a9c6085b3bdf9afd9bf70d

      build is broken on JDK7 at:

      [ERROR] /test/src/test/java/org/apache/sqoop/integration/connector/jdbc/generic/AllTypesTest.java:[70,6] error: reference to insertRow is ambiguous, both method insertRow(Object...) in ConnectorTestCase and method insertRow(boolean,Object...) in ConnectorTestCase match
      [ERROR] /test/src/test/java/org/apache/sqoop/integration/connector/jdbc/generic/AllTypesTest.java:[143,6] error: reference to assertRow is ambiguous, both method assertRow(Object[],Object...) in ConnectorTestCase and method assertRow(Object[],boolean,Object...) in ConnectorTestCase match
      

      Apparently JDK7 is boxing basic type value (false) to Boolean and confusing the two methods available insertRows methods in ConnectorTestCase.

        Attachments

        1. sqoop-2171_2.patch
          1 kB
          Syed A. Hashmi
        2. sqoop-2171.patch
          1 kB
          Syed A. Hashmi

          Activity

            People

            • Assignee:
              shashmi Syed A. Hashmi
              Reporter:
              shashmi Syed A. Hashmi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: