[ 
https://issues.apache.org/jira/browse/NUTCH-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040910#comment-18040910
 ] 

Isabelle Giguere edited comment on NUTCH-2971 at 11/26/25 9:16 PM:
-------------------------------------------------------------------

Well... forget Mockito.  Some of Hadoop can't really be "mocked".  The PR adds 
a wrapper class for Reducer.Context, and that's all the "mocking" required in 
this case.


was (Author: igiguere):
Well... forget Mockito.  Some of Hadoop can really be "mocked".  The PR adds a 
wrapper class for Reducer.Context, and that's all the "mocking" required in 
this case.

> 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)

Reply via email to