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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2019/07/12 13:20:00 UTC

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

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

Julian Reschke updated OAK-7366:
--------------------------------
    Labels:   (was: candidate_oak_1_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
>             Fix For: 1.9.0, 1.10.0, 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.14#76016)