tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Re: Using reflection to call tcnative methods
Date Sat, 09 Jul 2011 03:44:27 GMT
On 07/09/2011 04:14 AM, Christopher Schultz wrote:
> All,
> I've been working in AprLifecycleListener to add FIPS support. I need to
> make an additional native method call in initializeSSL and I'm wondering
> why all of the native methods are called using reflection instead of
> direct method calls.

Think that originates from the initial code when the java part of
native was not part of tomcat code.
We needed a way to make (at that time a separate .jar) tomcat uses
it without run time dependency.

> If there's no good reason, then all the reflective-call clutter should
> be removed.

There is absolutely no reason to use the reflection any more.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message