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

          Kumar Ravi created issue -
          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).
          Trevor Robinson made changes -
          Field Original Value New Value
          Summary Hadoop-Common build fails with IBM Java 7 on branch-1.0 Hadoop-Common build fails with Java 7 on branch-1.0
          Trevor Robinson made changes -
          Link This issue is related to BIGTOP-400 [ BIGTOP-400 ]
          Eli Collins made changes -
          Assignee Eli Collins [ eli2 ]
          Eli Collins made changes -
          Affects Version/s 2.0.0 [ 12320352 ]
          Target Version/s 1.1.0, 2.0.1 [ 12316501, 12321441 ]
          Hide
          Eli Collins added a comment -

          Patch for branch-1 attached.

          Show
          Eli Collins added a comment - Patch for branch-1 attached.
          Eli Collins made changes -
          Attachment hadoop-8329.txt [ 12528141 ]
          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.
          Eli Collins made changes -
          Attachment hadoop-8329.txt [ 12528142 ]
          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.
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Attachment hadoop-8329.txt [ 12528141 ]
          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.
          Eli Collins made changes -
          Summary Hadoop-Common build fails with Java 7 on branch-1.0 Build fails with Java 7
          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.
          Eli Collins made changes -
          Attachment hadoop-8329-b1.txt [ 12528171 ]
          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.
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 1.1.0, 2.0.1 [ 12316501, 12321441 ]
          Fix Version/s 1.1.0 [ 12316501 ]
          Fix Version/s 2.0.1 [ 12321441 ]
          Resolution Fixed [ 1 ]
          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
          Eli Collins made changes -
          Assignee Eli Collins [ eli2 ] Eli Collins [ eli ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322473 ]
          Fix Version/s 2.1.0-alpha [ 12321441 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          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.
          Tsz Wo Nicholas Sze made changes -
          Fix Version/s 1-win [ 12320361 ]
          Роман Донченко made changes -
          Link This issue is related to HADOOP-9506 [ HADOOP-9506 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          20d 22h 40m 1 Eli Collins 18/May/12 21:26
          Patch Available Patch Available Resolved Resolved
          1h 20m 1 Eli Collins 18/May/12 22:46
          Resolved Resolved Closed Closed
          145d 19h 58m 1 Arun C Murthy 11/Oct/12 18:45

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development