Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.0.3, 2.0.0-alpha
    • Fix Version/s: 1.1.0, 1-win, 2.0.2-alpha
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I am seeing the following message running IBM Java 7 running branch-1.0 code.
      compile:
      [echo] contrib: gridmix
      [javac] Compiling 31 source files to /home/hadoop/branch-1.0_0427/build/contrib/gridmix/classes
      [javac] /home/hadoop/branch-1.0_0427/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:396: error: type argument ? extends T is not within bounds of type-variable E
      [javac] private <T> String getEnumValues(Enum<? extends T>[] e) {
      [javac] ^
      [javac] where T,E are type-variables:
      [javac] T extends Object declared in method <T>getEnumValues(Enum<? extends T>[])
      [javac] E extends Enum<E> declared in class Enum
      [javac] /home/hadoop/branch-1.0_0427/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:399: error: type argument ? extends T is not within bounds of type-variable E
      [javac] for (Enum<? extends T> v : e) {
      [javac] ^
      [javac] where T,E are type-variables:
      [javac] T extends Object declared in method <T>getEnumValues(Enum<? extends T>[])
      [javac] E extends Enum<E> declared in class Enum
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 2 errors

      BUILD FAILED
      /home/hadoop/branch-1.0_0427/build.xml:703: The following error occurred while executing this line:
      /home/hadoop/branch-1.0_0427/src/contrib/build.xml:30: The following error occurred while executing this line:
      /home/hadoop/branch-1.0_0427/src/contrib/build-contrib.xml:185: Compile failed; see the compiler error output for details.

      1. hadoop-8329-b1.txt
        0.7 kB
        Eli Collins
      2. hadoop-8329.txt
        0.9 kB
        Eli Collins

        Issue Links

          Activity

          Hide
          Trevor Robinson added a comment -

          I get the same error with Oracle Java 7 (update 4).

          Show
          Trevor Robinson added a comment - I get the same error with Oracle Java 7 (update 4).
          Hide
          Eli Collins added a comment -

          Patch for branch-1 attached.

          Show
          Eli Collins added a comment - Patch for branch-1 attached.
          Hide
          Eli Collins added a comment -

          Patch for trunk attached. Simple change, not sure why the code was using a bounded type parameter here in the first place.

          Show
          Eli Collins added a comment - Patch for trunk attached. Simple change, not sure why the code was using a bounded type parameter here in the first place.
          Hide
          Eli Collins added a comment -

          Tested with Oracle jdk 1.7.0.

          Show
          Eli Collins added a comment - Tested with Oracle jdk 1.7.0.
          Hide
          Luke Lu added a comment -

          +1, lgtm.

          Show
          Luke Lu added a comment - +1, lgtm.
          Hide
          Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12528142/hadoop-8329.txt
          against trunk revision .

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no new tests are needed for this patch.
          Also please list what manual steps were performed to verify this patch.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          -1 javadoc. The javadoc tool appears to have generated 2 warning messages.

          +1 eclipse:eclipse. The patch built with eclipse:eclipse.

          -1 findbugs. The patch appears to introduce 11 new Findbugs (version 1.3.9) warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed unit tests in hadoop-tools/hadoop-gridmix.

          +1 contrib tests. The patch passed contrib unit tests.

          Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//testReport/
          Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//artifact/trunk/trunk/patchprocess/newPatchFindbugsWarningshadoop-gridmix.html
          Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//console

          This message is automatically generated.

          Show
          Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12528142/hadoop-8329.txt against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 javadoc. The javadoc tool appears to have generated 2 warning messages. +1 eclipse:eclipse. The patch built with eclipse:eclipse. -1 findbugs. The patch appears to introduce 11 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in hadoop-tools/hadoop-gridmix. +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//artifact/trunk/trunk/patchprocess/newPatchFindbugsWarningshadoop-gridmix.html Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1011//console This message is automatically generated.
          Hide
          Eli Collins added a comment -

          Thanks Luke. Findbugs warnings are unrelated. No test since this just fixes a compilation error.

          Show
          Eli Collins added a comment - Thanks Luke. Findbugs warnings are unrelated. No test since this just fixes a compilation error.
          Hide
          Eli Collins added a comment -

          I'll commit to branch-1 as well, same change just a different path.

          Show
          Eli Collins added a comment - I'll commit to branch-1 as well, same change just a different path.
          Hide
          Eli Collins added a comment -

          I've committed this and merged to branch-1 and branch-2.

          Show
          Eli Collins added a comment - I've committed this and merged to branch-1 and branch-2.
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk-Commit #2343 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2343/)
          HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins (Revision 1340268)

          Result = SUCCESS
          eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268
          Files :

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #2343 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2343/ ) HADOOP-8329 . Build fails with Java 7. Contributed by Eli Collins (Revision 1340268) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Common-trunk-Commit #2270 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2270/)
          HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins (Revision 1340268)

          Result = SUCCESS
          eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268
          Files :

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Show
          Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #2270 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2270/ ) HADOOP-8329 . Build fails with Java 7. Contributed by Eli Collins (Revision 1340268) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk-Commit #2288 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2288/)
          HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins (Revision 1340268)

          Result = FAILURE
          eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268
          Files :

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #2288 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2288/ ) HADOOP-8329 . Build fails with Java 7. Contributed by Eli Collins (Revision 1340268) Result = FAILURE eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk #1050 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1050/)
          HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins (Revision 1340268)

          Result = SUCCESS
          eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268
          Files :

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1050 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1050/ ) HADOOP-8329 . Build fails with Java 7. Contributed by Eli Collins (Revision 1340268) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk #1084 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1084/)
          HADOOP-8329. Build fails with Java 7. Contributed by Eli Collins (Revision 1340268)

          Result = FAILURE
          eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268
          Files :

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          • /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1084 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1084/ ) HADOOP-8329 . Build fails with Java 7. Contributed by Eli Collins (Revision 1340268) Result = FAILURE eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1340268 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java
          Hide
          Tsz Wo Nicholas Sze added a comment -

          Merged this to branch-1-win.

          Show
          Tsz Wo Nicholas Sze added a comment - Merged this to branch-1-win.

            People

            • Assignee:
              Eli Collins
              Reporter:
              Kumar Ravi
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development