United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4501215 : gives header file name differently than the class file.

Details
Type:
Bug
Submit Date:
2001-09-10
Status:
Closed
Updated Date:
2002-11-22
Project Name:
JDK
Resolved Date:
2002-11-19
Component:
tools
OS:
solaris_8,generic
Sub-Component:
javah
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.1_03,1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Duplicate:
Duplicate:

Sub Tasks

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


                                     
2004-06-14
EVALUATION

This is fixed as a side effect of BugId 4633398.

###@###.### 2002-11-19
                                     
2002-11-19
WORK AROUND

Don't use underscores in class files with native methods.

###@###.### 2001-09-17
                                     
2001-09-17



Hardware and Software, Engineered to Work Together