gnodet commented on PR #26845: URL: https://github.com/apache/camel/pull/26845#issuecomment-5828779138
Fixed in bc71bd12: the test failures were caused by `IllegalAccessException` when invoking reflected methods on anonymous inner classes (the test stubs). Java's reflection API requires `setAccessible(true)` to invoke a method found via `getMethod()` when the declaring class is package-private (anonymous classes always are). Added `setAccessible(true)` on both `getHikariPoolMXBean` and `softEvictConnections` before `invoke()` in `DataSourceHelper`. This has no impact on production HikariCP usage since `HikariDataSource` is public. -- 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]
