Greg Brown greg.x.brown at
Mon Mar 12 12:30:34 PDT 2012

>> 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?
>> Thanks,
>> Greg
> javah was rewritten in JDK 7, but the intent was the headers generated should be the same as for earlier versions of javah.

So, to confirm - the fact that these headers were are generated in Java 6 but are generated in Java 7 is likely a bug?

More information about the macosx-port-dev mailing list