You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andras Bokor (JIRA)" <ji...@apache.org> on 2018/02/14 17:07:00 UTC

[jira] [Updated] (HADOOP-15225) mvn javadoc:test-javadoc goal throws cannot find symbol

     [ https://issues.apache.org/jira/browse/HADOOP-15225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Bokor updated HADOOP-15225:
----------------------------------
    Description: 
{code:java}
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{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.

  was:
{code:java}
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{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.


> 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
>            Priority: Minor
>
> {code:java}
> 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{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
(v7.6.3#76005)

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