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

Robert Muir commented on LUCENE-6791:
-------------------------------------

With a lambda its a little ugly, you need a cast:
{code}
AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
{code}

Maybe we can just do it the current old-fashioned way? If you can make it 
nicer, I am happy.

> sketchy MockFileSystem reflection should be in AccessController block
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-6791
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6791
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-6791.patch
>
>
> mockfilesystems needs to handle implCloseChannel to track leaks and so on in 
> tests. But this requires some sketchy access to internal classes 
> (sun.nio.ch). We should allow this to be contained to just the 
> test-framework.jar



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to