Hadoop Common
  1. Hadoop Common
  2. HADOOP-7942

enabling clover coverage reports fails hadoop unit test compilation

    Details

      Description

      enabling clover reports fails compiling the following junit tests.
      link to the console output of jerkins :
      https://builds.apache.org/view/G-L/view/Hadoop/job/Hadoop-1-Code-Coverage/13/console

      [javac] /tmp/clover50695626838999169.tmp/org/apache/hadoop/security/TestUserGroupInformation.java:224: cannot find symbol
      ......
          [javac] /tmp/clover50695626838999169.tmp/org/apache/hadoop/security/TestUserGroupInformation.java:225: cannot find symbol
      ......
      
       [javac] /tmp/clover50695626838999169.tmp/org/apache/hadoop/security/TestJobCredentials.java:67: cannot find symbol
          [javac] symbol  : class T 
      ......
      [javac] /tmp/clover50695626838999169.tmp/org/apache/hadoop/security/TestJobCredentials.java:68: cannot find symbol
          [javac] symbol  : class T
      .....
      [javac] /tmp/clover50695626838999169.tmp/org/apache/hadoop/fs/TestFileSystem.java:653: cannot find symbol
          [javac] symbol  : class T
      .....
      [javac]         ^
          [javac] Note: Some input files use or override a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] 5 errors
          [javac] 63 warnings
      
      
      1. HADOOP-7942.branch-1.patch
        3 kB
        Jitendra Nath Pandey

        Activity

        Hide
        Jitendra Nath Pandey added a comment -

        This problem is due to a bug in javac which is fixed in java 7. The attached patch should work around it.

        Show
        Jitendra Nath Pandey added a comment - This problem is due to a bug in javac which is fixed in java 7. The attached patch should work around it.
        Hide
        Giridharan Kesavan added a comment -

        +1 this patch fixes the junit test compilation failures.

        Show
        Giridharan Kesavan added a comment - +1 this patch fixes the junit test compilation failures.
        Hide
        Jitendra Nath Pandey added a comment -

        Committed to branch-1.

        Show
        Jitendra Nath Pandey added a comment - Committed to branch-1.
        Hide
        Harsh J added a comment -

        If this is done, please mark as resolved or update the target and fix versions appropriately please.

        Show
        Harsh J added a comment - If this is done, please mark as resolved or update the target and fix versions appropriately please.
        Hide
        Harsh J added a comment -

        Adding Fix version for branch-1, but keeping open for OP to resolve with confidence that this does not affect (or isn't needed) on other branches.

        Show
        Harsh J added a comment - Adding Fix version for branch-1, but keeping open for OP to resolve with confidence that this does not affect (or isn't needed) on other branches.
        Hide
        Matt Foley added a comment -

        Seems like no one has observed a need for this in other branches in six months. Resolving as part of 1.1.0 release cleanup.

        Show
        Matt Foley added a comment - Seems like no one has observed a need for this in other branches in six months. Resolving as part of 1.1.0 release cleanup.
        Hide
        Matt Foley added a comment -

        Closed upon release of Hadoop-1.1.0.

        Show
        Matt Foley added a comment - Closed upon release of Hadoop-1.1.0.

          People

          • Assignee:
            Jitendra Nath Pandey
            Reporter:
            Giridharan Kesavan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development