You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Syed A. Hashmi (JIRA)" <ji...@apache.org> on 2015/03/05 02:45:39 UTC
[jira] [Updated] (SQOOP-2171) incorrect basic type boxing in Java 7
is causing build failure in ConnectorTestCase
[ https://issues.apache.org/jira/browse/SQOOP-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Syed A. Hashmi updated SQOOP-2171:
----------------------------------
Attachment: sqoop-2171.patch
> incorrect basic type boxing in Java 7 is causing build failure in ConnectorTestCase
> -----------------------------------------------------------------------------------
>
> Key: SQOOP-2171
> URL: https://issues.apache.org/jira/browse/SQOOP-2171
> Project: Sqoop
> Issue Type: Bug
> Components: sqoop2-test
> Affects Versions: 1.99.5
> Reporter: Syed A. Hashmi
> Labels: patch
> Fix For: 2.0.0
>
> Attachments: sqoop-2171.patch
>
>
> After commit: https://github.com/apache/sqoop/commit/3ba01bcf8320c5d8b4a9c6085b3bdf9afd9bf70d
> build is broken on JDK7 at:
> {code}
> [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
> {code}
> Apparently JDK7 is boxing basic type value (false) to Boolean and confusing the two methods available insertRows methods in ConnectorTestCase.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)