test/tools/javah/compareTest/README

Tue, 25 May 2010 15:54:51 -0700

author
ohair
date
Tue, 25 May 2010 15:54:51 -0700
changeset 554
9d9f26857129
parent 0
959103a6100f
permissions
-rw-r--r--

6943119: Rebrand source copyright notices
Reviewed-by: darcy

aoqi@0 1 test/tools/javah/compareTest/README
aoqi@0 2
aoqi@0 3 This directory contains a program for comparing the output of new javah against the
aoqi@0 4 output of JDK 6 or other older versions of javah.
aoqi@0 5
aoqi@0 6 It cannot be run automatically because of the need for the older version of javah
aoqi@0 7 to compare against.
aoqi@0 8
aoqi@0 9 The test works by scanning a jar file, such as rt.jar, looking for all files with
aoqi@0 10 native methods. It then runs both the old and new versions of javah on those
aoqi@0 11 classes with native methods, and verifies that the results are character-for-character
aoqi@0 12 identical.
aoqi@0 13
aoqi@0 14 To run the test, build langtools, then execute the script in the root langtools
aoqi@0 15 directory, providing the location of the JDK to be tested. The default is
aoqi@0 16 /opt/jdk/1.6.0.

mercurial