Hadoop Common
  1. Hadoop Common
  2. HADOOP-1294

Fix unchecked warnings in main Hadoop code under Java 6.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Tom White made changes -
        Attachment java6_unchecked2.patch [ 12356329 ]
        Tom White made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Tom White made changes -
        Field Original Value New Value
        Attachment java6_unchecked.patch [ 12356233 ]
        Tom White created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development