uschindler opened a new pull request, #16695:
URL: https://github.com/apache/lucene/pull/16695

   In branch_10x the update of forbiddenapis to 3.11 (see #16694) caused a new 
failure:
   
   ```
   > Task :lucene:core:forbiddenApisMain FAILED
   Forbidden exception use: java.security.AccessControlException [Deprecated in 
Java 21]
     in org.apache.lucene.util.RamUsageEstimator (RamUsageEstimator.java, catch 
in method body of 'shallowSizeOfInstance(java.lang.Class)')
   Scanned 2688 class file(s) for forbidden API invocations (in 9.45s), 1 
error(s).
   ```
   
   The reason for this is a bugfix in forbiddenapis. The previous version did 
not detect usages of types in catch blocks. Now it does. The 
`AccessControlException` is deprecated in Java and therefor reported as 
violation.
   
   This PR simply remove the whole catch block as `AccessControlException` 
extends `RuntimeException` anyways so wrapping is not needed.


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

Reply via email to