hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10866) Fix Eclipse Java 8 compile errors related to generic parameters.
Date Fri, 16 Sep 2016 01:32:20 GMT

    [ https://issues.apache.org/jira/browse/HDFS-10866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15495072#comment-15495072

Konstantin Shvachko commented on HDFS-10866:

Twp types of errors:
# In {{MapFile.main()}} Eclipse complains that {{ReflectionUtils.newInstance()}} is not applicable
for the arguments {{(Class<? extends WritableComparable>, Configuration)}}.
# The following line, which appears multiple times in two tests {{TestDelegationTokenRenewer}}
and {{TestWebHdfsTokens}}
 {{verify(fs, never()).setDelegationToken(any(Token.class));}}
 causes error saying {{setDelegationToken(Token<T>)}} is not applicable for the arguments

> Fix Eclipse Java 8 compile errors related to generic parameters.
> ----------------------------------------------------------------
>                 Key: HDFS-10866
>                 URL: https://issues.apache.org/jira/browse/HDFS-10866
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Konstantin Shvachko
> Compilation with Java 8 in Eclipse returns errors, which are related to the use of generics.
This does not effect command line maven builds and is confirmed to be a [bug in Eclipse|https://bugs.eclipse.org/bugs/show_bug.cgi?id=497905#c1].The
fix is scheduled only for the next release, so all of us using Eclipse now will have that
> Unless we fix it in Hadoop code, which makes sense to me as it appears as a warning in
any case.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message