hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-15225) mvn javadoc:test-javadoc goal throws cannot find symbol
Date Tue, 13 Feb 2018 14:18:00 GMT
Andras Bokor created HADOOP-15225:

             Summary: mvn javadoc:test-javadoc goal throws cannot find symbol
                 Key: HADOOP-15225
                 URL: https://issues.apache.org/jira/browse/HADOOP-15225
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Andras Bokor
            Assignee: Andras Bokor

error: cannot find symbol
[WARNING] import static org.hamcrest.CoreMatchers.containsString;
[WARNING] symbol:   static containsString
[WARNING] location: class{code}
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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org

View raw message