ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: <javah> task
Date Tue, 13 Mar 2012 17:21:49 GMT
On 2012-03-13, Greg Brown wrote:

> The other day I noticed that, when run under Java 6, the <javah> task
> only produces headers for explicitly named classes. However, under
> Java 7, <javah> generates headers for the named classes as well as any
> nested or inner classes defined by those classes, regardless of
> whether the nested classes actually define any native methods.

> Was this change intentional?

The implementation of Ant's javah task doesn't even check which version
of Java you are using.  If this is a change, it is within the JDK, not
Ant.  I can't seem to find any reference to that change, though.

If you run Ant -verbose it should give you the literal command line it
passes to javah.  I wouldn't expect it to contain your nested classes.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message