jonathan.gibbons at oracle.com
Mon Mar 12 11:48:35 PDT 2012
On 03/12/2012 11:29 AM, Greg Brown wrote:
> Hi all,
> Has the behavior of javah changed in Java 7? I'm using the<javah> task in Ant to generate some JNI headers. When I run my Ant script under Java 6, I only get headers for classes I explicitly specify. Under Java 7, I get headers for all of my specified classes as well as any nested classes defined by those classes, even though the nested classes themselves don't specify any native methods.
> I'm not sure if Ant or javah is responsible for the change, but if it is javah - is this intentional, or is it a bug?
javah was rewritten in JDK 7, but the intent was the headers generated
should be the same as for earlier versions of javah.
More information about the macosx-port-dev