From user-return-72273-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Mar 15 19:22:45 2012 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CADB980C for ; Thu, 15 Mar 2012 19:22:45 +0000 (UTC) Received: (qmail 81179 invoked by uid 500); 15 Mar 2012 19:22:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 80963 invoked by uid 500); 15 Mar 2012 19:22:43 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 80950 invoked by uid 99); 15 Mar 2012 19:22:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 19:22:43 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 19:22:35 +0000 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q2FJMD73001560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Mar 2012 19:22:14 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q2FJMCRt003145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 15 Mar 2012 19:22:13 GMT Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q2FJMCGJ015304 for ; Thu, 15 Mar 2012 14:22:12 -0500 Received: from dhcp-burlington9-2nd-b-east-10-152-15-45.usdhcp.oraclecorp.com (/10.152.15.45) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 15 Mar 2012 12:22:12 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: task From: Greg Brown In-Reply-To: <0A917FD9-A27F-4A0D-AC44-F74E85C4A1B4@oracle.com> Date: Thu, 15 Mar 2012 15:22:11 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <3A7D50D4-7C6B-4BD2-98E2-852F4BABADBE@oracle.com> References: <1C1E015F-DC4F-46B0-BED8-DB173EAACA41@oracle.com> <874ntsquvm.fsf@v35516.1blu.de> <0A917FD9-A27F-4A0D-AC44-F74E85C4A1B4@oracle.com> To: "Ant Users List" X-Mailer: Apple Mail (2.1257) X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-CT-RefId: str=0001.0A090202.4F624166.004D,ss=1,re=0.000,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Just to close the loop - here is the answer (from Jonathan Gibbons, = author of javah): > I looked at the Ant task, and it's a simple enough wrapper = around whatever impl of javah it can find. >=20 > The fundamental problem is that back in JDK 5, javah was rewritten for = the first time, but the old code remained available via the -Xold = switch. But, it wasn't a very good rewrite, so in the JDK 6/7 = timeframe, I rewrote parts of it, and because there were already two = versions of javah in JDK, and I was about to add a third, I got rid of = the other two, and eliminated the undocumented -Xold option. >=20 > So, you can probably figure out the rest of the story. >=20 > The change in behavior that you came across was introduced round about = JDK 5, but it was masked by Ant using the -Xold switch to get at the old = code. When I did my rewrite, I removed -Xold, thus forcing the Ant = task to move to a later version of javah, thus getting the additional = header files. >=20 > For my part, when I did my rewrite back in JDK 6/7, I retained = fidelity with the standard command line version of javah in use at the = time, so I wrote it so that it continued to generate headers for nested = classes. Greg On Mar 13, 2012, at 1:28 PM, Greg Brown wrote: >> 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. >=20 > That was my first thought as well: >=20 > = http://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-March/003554.h= tml >=20 >> 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. >=20 > I'll try that and let you know what I find out.=20 >=20 > Thanks! > Greg >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org