jdk-24/langtools/test/tools/javah/compareTest
Kelly O'Hair bd4f4be9d7 6943119: Rebrand source copyright notices
Reviewed-by: darcy
2010-05-25 15:54:51 -07:00
..
CompareTest.java 6943119: Rebrand source copyright notices 2010-05-25 15:54:51 -07:00
CompareTest.sh 6943119: Rebrand source copyright notices 2010-05-25 15:54:51 -07:00
FindNativeFiles.java 6943119: Rebrand source copyright notices 2010-05-25 15:54:51 -07:00
README 6572945: javah should be written as an annotation processor, not a doclet 2009-09-23 19:15:04 -07:00

test/tools/javah/compareTest/README

This directory contains a program for comparing the output of new javah against the
output of JDK 6 or other older versions of javah.

It cannot be run automatically because of the need for the older version of javah
to compare against.

The test works by scanning a jar file, such as rt.jar, looking for all files with
native methods.  It then runs both the old and new versions of javah on those
classes with native methods, and verifies that the results are character-for-character
identical.

To run the test, build langtools, then execute the script in the root langtools 
directory, providing the location of the JDK to be tested. The default is
/opt/jdk/1.6.0.