8236582: (fc) FileChannel.map fails with InternalError when security manager enabled
Alan.Bateman at oracle.com
Tue Jan 7 15:55:57 UTC 2020
On 07/01/2020 15:44, Brian Burkhalter wrote:
> This issue  is caused by using privateLookupIn() outside a privileged block. The patch  fixes this. The added test fails without the source patch but passes with it.
Thanks for picking this up, it's a small regression from JEP 352. The
change to ExtendedMapMode looks good. I think the test should be in the
FileChannel directory with the other tests for FileChannel.map. The test
should close the FileChannel (try-with-resources should be best here).
More information about the nio-dev