[
https://issues.apache.org/jira/browse/NUTCH-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040419#comment-18040419
]
Isabelle Giguere commented on NUTCH-2971:
-----------------------------------------
Attached: TEST-org.apache.nutch.crawl.TestCrawlDbStates.txt
Stack trace of the failing TestCrawlDbStates dives into
org.apache.hadoop.mrunit.*
So switching to Mockito should help.
> Unit tests fail with JDK 17
> ---------------------------
>
> Key: NUTCH-2971
> URL: https://issues.apache.org/jira/browse/NUTCH-2971
> Project: Nutch
> Issue Type: Sub-task
> Components: build, test
> Affects Versions: 1.20
> Reporter: Sebastian Nagel
> Priority: Major
> Fix For: 1.22
>
> Attachments: TEST-org.apache.nutch.crawl.TestCrawlDbStates.txt
>
>
> When build and run using JDK 17 unit tests in TestIndexerMapReduce and
> TestCrawlDbStates fail with:
> {noformat}
> java.lang.reflect.InaccessibleObjectException: Unable to make protected final
> java.lang.Class ... accessible: ...
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)