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

mvn javadoc:test-javadoc goal throws cannot find symbol

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      hadoop/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestReflectionUtils.java:28: error: cannot find symbol
      [WARNING] import static org.hamcrest.CoreMatchers.containsString;
      [WARNING] ^
      [WARNING] symbol:   static containsString
      [WARNING] location: class

      This happens because mockito-all includes Hamcrest classes but a different version. Let's see TestReflectionUtils as an example:
      {{import static org.hamcrest.CoreMatchers.containsString; }} will result in error.
      Somehow mvn javadoc:test-javadoc will find Mockito's CoreMatchers class on the classpath which has no containsString method.
      From Mockito 2 the mockito-all is discontinued so HADOOP-14178 will solve this.

      Once HADOOP-14178 is resolved this can be closed as well.

      Attachments

        Issue Links

          Activity

            People

              boky01 Andras Bokor
              boky01 Andras Bokor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: