Bug 45527 - gjavah encodes $ as used in inner classes as 00024 where Oracle's javah does not
Summary: gjavah encodes $ as used in inner classes as 00024 where Oracle's javah does not
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.98
: P3 normal
Target Milestone: 0.99
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 39410
  Show dependency treegraph
 
Reported: 2010-09-03 19:23 UTC by Andrew John Hughes
Modified: 2011-07-07 11:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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