Fokko opened a new pull request, #3902:
URL: https://github.com/apache/parquet-java/pull/3902

   ### Rationale for this change
   
   `AccessController` and `PrivilegedAction` are deprecated for removal since 
JDK 17 (JEP 411). Without a SecurityManager, `doPrivileged` just runs the 
action, and the minimum JDK is now 17.
   
   ### What changes are included in this PR?
   
   - `DynMethods` / `DynConstructors`: call `setAccessible(true)` directly and 
drop the private `MakeAccessible` helpers. `InaccessibleObjectException` is 
caught next to `SecurityException`, so an implementation that can't be made 
accessible is still skipped instead of failing the builder.
   - parquet-cli `BaseCommand`: build the `URLClassLoader` directly and delete 
the `GetClassLoader` `PrivilegedAction`.
   
   ### Are these changes tested?
   
   Covered by the existing tests: `TestDynMethods`, `TestDynConstructors` and 
the parquet-cli test suite.
   
   ### Are there any user-facing changes?
   
   No.
   
   Closes #3896
   
   This pull request and its description were written by Isaac.


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