You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2007/04/25 14:46:15 UTC
[jira] Updated: (HADOOP-1294) Fix unchecked warnings in main Hadoop
code under Java 6.
[ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom White updated HADOOP-1294:
------------------------------
Attachment: java6_unchecked.patch
This is occurring because the getConstructor method on Class changed between Java 5 and 6, from:
public Constructor<T> getConstructor(Class... parameterTypes)
to
public Constructor<T> getConstructor(Class<?>... parameterTypes)
This patch should fix the warning. I haven't managed to test it on Java 6 - Tahir, would you be able to try it please?
> Fix unchecked warnings in main Hadoop code under Java 6.
> --------------------------------------------------------
>
> Key: HADOOP-1294
> URL: https://issues.apache.org/jira/browse/HADOOP-1294
> Project: Hadoop
> Issue Type: Bug
> Components: test
> Reporter: Tom White
> Assigned To: Tom White
> Fix For: 0.13.0
>
> Attachments: java6_unchecked.patch
>
>
> Reported by Tahir Hashmi:
> I get the following warning while building:
> [javac]
> /home/tahir/Desktop/Trunk/trunk/src/test/org/apache/hadoop/dfs/ClusterTestDFS.java:439:
> warning: [unchecked] unchecked call to
> getConstructor(java.lang.Class<?>...) as a member of the raw type
> java.lang.Class
> [javac] randomDataGeneratorCtor = clazz.getConstructor(new
> Class[]{Long.TYPE});
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.