[ https://issues.apache.org/jira/browse/OAK-7366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated OAK-7366: -------------------------------- Fix Version/s: 1.8.6 > 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: Task > Reporter: Alex Deparvu > Assignee: Alex Deparvu > Priority: Minor > Labels: candidate_oak_1_6 > Fix For: 1.9.0, 1.10, 1.8.6 > > > 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)