JDK-4501215 : gives header file name differently than the class file.
  • Type: Bug
  • Component: tools
  • Sub-Component: javah
  • Affected Version: 1.2.1_03,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_8
  • CPU: generic,sparc
  • Submitted: 2001-09-10
  • Updated: 2002-11-22
  • Resolved: 2002-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Duplicate :  
Duplicate :  
Description
when underscore is used in class file name ( ex A_B) the generated header file name suffixes the underscore with 0005f. ( A_0005fB.h is generated). 
see the example below.

bablu:/home/sm123058/sudha/bugs/bug_javah 122 % java -version
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b78)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b78, mixed mode)
bablu:/home/sm123058/sudha/bugs/bug_javah 123 % ls
./         ../        A_B.java
bablu:/home/sm123058/sudha/bugs/bug_javah 124 % cat A_B.java
class A_B {}
bablu:/home/sm123058/sudha/bugs/bug_javah 125 % javac *.java
bablu:/home/sm123058/sudha/bugs/bug_javah 126 % javah A_B
bablu:/home/sm123058/sudha/bugs/bug_javah 127 % ls
./           ../          A_0005fB.h   A_B.class    A_B.java
bablu:/home/sm123058/sudha/bugs/bug_javah 128 % 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis VERIFIED IN: mantis
14-06-2004

EVALUATION This is fixed as a side effect of BugId 4633398. ###@###.### 2002-11-19
19-11-2002

WORK AROUND Don't use underscores in class files with native methods. ###@###.### 2001-09-17
17-09-2001