FAQ
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


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.

Search Discussions

  • Tom White (JIRA) at Apr 25, 2007 at 12:46 pm
    [ 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.
  • Tom White (JIRA) at Apr 25, 2007 at 12:46 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Tom White updated HADOOP-1294:
    ------------------------------

    Status: Patch Available (was: In Progress)
    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.
  • Tom White (JIRA) at Apr 25, 2007 at 12:46 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Work on HADOOP-1294 started by Tom White.
    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.
  • Hadoop QA (JIRA) at Apr 25, 2007 at 1:08 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491632 ]

    Hadoop QA commented on HADOOP-1294:
    -----------------------------------

    +1

    http://issues.apache.org/jira/secure/attachment/12356233/java6_unchecked.patch applied and successfully tested against trunk revision r532083.

    Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/76/testReport/
    Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/76/console
    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.
  • Tahir Hashmi (JIRA) at Apr 26, 2007 at 9:44 am
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491935 ]

    Tahir Hashmi commented on HADOOP-1294:
    --------------------------------------

    I get the following warning after applying the patch:

    [javac] /home/tahir/Desktop/Hadoop/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(Long.TYPE);
    [javac] ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

    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.
  • Tom White (JIRA) at Apr 26, 2007 at 1:12 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Tom White updated HADOOP-1294:
    ------------------------------

    Attachment: java6_unchecked2.patch

    Thanks Tahir. I've now got Java 6 working which exposed a few more warnings. This patch fixes them. I've checked it with Java 5 too.
    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, java6_unchecked2.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.
  • Tom White (JIRA) at Apr 27, 2007 at 8:31 am
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Tom White updated HADOOP-1294:
    ------------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    I've just committed this.
    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, java6_unchecked2.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.
  • Hadoop QA (JIRA) at Apr 27, 2007 at 11:20 am
    [ https://issues.apache.org/jira/browse/HADOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492247 ]

    Hadoop QA commented on HADOOP-1294:
    -----------------------------------

    Integrated in Hadoop-Nightly #71 (See http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/71/)
    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, java6_unchecked2.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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedApr 25, '07 at 12:41p
activeApr 27, '07 at 11:20a
posts9
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Hadoop QA (JIRA): 9 posts

People

Translate

site design / logo © 2022 Grokbase