Fokko opened a new pull request, #3903: URL: https://github.com/apache/parquet-java/pull/3903
### Rationale for this change `Class.newInstance()` has been deprecated since Java 9. ### What changes are included in this PR? Replace it with `getDeclaredConstructor().newInstance()` in parquet-hadoop (`ParquetInputFormat`, `ParquetOutputFormat`, the crypto factories, `KeyToolkit`), parquet-thrift, parquet-column (`Operators`) and parquet-format-structures. The catch clauses are widened to `ReflectiveOperationException`, keeping the existing wrapping exceptions and messages. ### Are these changes tested? Covered by the existing tests of the touched modules. ### Are there any user-facing changes? A constructor that throws a checked exception is now reported wrapped (through the existing `BadConfigurationException` / `RuntimeException` wrappers) instead of being sneaky-thrown by `Class.newInstance()`. Closes #3897 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]
