GCC Bugzilla has been upgraded from version 4.4.9 to 5.0rc3. If you see any problem, please report it to bug 64968.

Bug 45527

Summary: gjavah encodes $ as used in inner classes as 00024 where Oracle's javah does not
Product: classpath Reporter: Andrew John Hughes <gnu_andrew>
Component: classpathAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: bug-classpath
Priority: P3    
Version: 0.98   
Target Milestone: 0.99   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 39410    

Description Andrew John Hughes 2010-09-03 19:23:21 UTC
From Oracle's javah:
 sun_java2d_opengl_OGLContext_OGLContextCaps_CAPS_STORED_ALPHA                    

From gjavah:
                                             
sun_java2d_opengl_OGLContext_00024OGLContextCaps_CAPS_STORED_ALPHA
Comment 1 Andrew John Hughes 2011-07-07 11:53:27 UTC
CVSROOT:        /sources/classpath
Module name:    classpath
Changes by:     Andrew John Hughes <gnu_andrew> 11/07/07 11:30:40

Modified files:
       .              : ChangeLog
       tools/gnu/classpath/tools/javah: JniHelper.java

Log message:
       PR classpath/45527: Replace '$' with '_' rather than '_00024'.

       2011-07-07  Andrew John Hughes  <ahughes@redhat.com>

               PR classpath/45527
               * tools/gnu/classpath/tools/javah/JniHelper.java:
               (mangle(String)): Replace '$' with '_' rather than
               encoding it as hex.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9830&r2=1.9831
http://cvs.savannah.gnu.org/viewcvs/classpath/tools/gnu/classpath/tools/javah/JniHelper.java?cvsroot=classpath&r1=1.4&r2=1.5