uschindler commented on PR #15843: URL: https://github.com/apache/lucene/pull/15843#issuecomment-4097305502
Basically the current code should only be changed to have a possible `UnsupportedOperationException` handled also here: https://github.com/cortlepp/lucene/blob/3ba9a0736636e976677c4c29c351945b23dfee6c/lucene/core/src/java/org/apache/lucene/store/PosixNativeAccess.java#L63-L64 So maybe move that down into the try-catch. Then it is safe for clinit. I don't see a reason for refactoring this otherwise. Logging the warning IF native access is disabled is actually wanted. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
