uschindler commented on PR #12306:
URL: https://github.com/apache/lucene/pull/12306#issuecomment-1552692627

   > The only argument you've given against a system property specifically is:
   > 
   > > system property is not used appropriately (e.g. proper security checks). 
If there is a security manager, and it doesn't allow read to this property, 
classes will fail to load.
   > 
   > Okay, good point. I can improve the PR to catch a SecurityException and 
use the default value; maybe log a warning as well.
   
   Please take the code of MmapDirectory. There it reads a sysprop. The code 
there is the "most modern" variant to read it. Also wrap it with 
AccessController.doPrivileged! It is not easy visible in MmapDirectory, because 
the whole code block is wrapped by AccessController.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to