Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1294

Fix unchecked warnings in main Hadoop code under Java 6.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: test
    • Labels:
      None

      Description

      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.

        Attachments

        1. java6_unchecked2.patch
          3 kB
          Tom White
        2. java6_unchecked.patch
          0.6 kB
          Tom White

          Activity

            People

            • Assignee:
              tomwhite Tom White
              Reporter:
              tomwhite Tom White
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: