[ 
https://issues.apache.org/jira/browse/HDFS-10866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Shvachko updated HDFS-10866:
---------------------------------------
    Attachment: HDFS-10866.01.patch

Simple patch, which fixes eclipse build for me and removes a bunch of warnings.
* For (1) it just adds {{<?>}} for the generic type in variable declaration.
* For (2) I just used less type specific {{any()}} instead of 
{{any(Token.class)}}.

> 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
>         Attachments: HDFS-10866.01.patch
>
>
> 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 error.
> 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
(v6.3.4#6332)

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

Reply via email to