You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Deparvu (JIRA)" <ji...@apache.org> on 2018/03/21 15:51:00 UTC

[jira] [Created] (OAK-7366) update to mockito version compatible with jdk 10

Alex Deparvu created OAK-7366:
---------------------------------

             Summary: update to mockito version compatible with jdk 10 
                 Key: OAK-7366
                 URL: https://issues.apache.org/jira/browse/OAK-7366
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Alex Deparvu
            Assignee: Alex Deparvu


Mockito needs to be updated to 2.12.0 as per [0].
 
{noformat}
[INFO] Running org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest
[ERROR] Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.811 s <<< FAILURE! - in org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest
[ERROR] testNullLocation(org.apache.jackrabbit.oak.plugins.tree.TreeLocationTest)  Time elapsed: 0.491 s  <<< ERROR!
org.mockito.exceptions.base.MockitoException: 

Mockito cannot mock this class: interface org.apache.jackrabbit.oak.api.Tree.

Mockito can only mock non-private & non-final classes.
If you're not sure why you're getting this error, please report to the mailing list.


Java               : 10
JVM vendor name    : "Oracle Corporation"
JVM vendor version : 10+46
JVM name           : Java HotSpot(TM) 64-Bit Server VM
JVM version        : 10+46
JVM info           : mixed mode
OS name            : Mac OS X
OS version         : 10.13.3


Underlying exception : java.lang.UnsupportedOperationException: Cannot define class using reflection
Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection
Caused by: java.lang.IllegalArgumentException: Unknown Java version: 10
{noformat}

[0] https://github.com/mockito/mockito/issues/1243



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)