Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 19742
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Tom Tromey <tromey@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Anthony Green <green@redhat.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 19742 depends on: Show dependency tree
Show dependency graph
Bug 19742 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2005-02-01 16:28
A java class has this:

    public static final int delete = 555;

gcjh will correctly mangle the name delete (to delete$) for CNI header output. 
However, it also does this when generating JNI output (with gcjh -jni).  We get
output link this, and it is wrong:

#undef foo_delete$
#define foo_delete$ 555L

This should be just "foo_delete".  This is preventing the subversion JNI code
from building.

------- Comment #1 From Andrew Pinski 2005-02-01 17:36 -------
I think this is related to PR 16843 well that might have been the bug before as
we did not emit the final 
constants before.  We still don't for Inherited constants.

------- Comment #2 From Tom Tromey 2005-02-01 21:04 -------
I'm testing a patch

------- Comment #3 From CVS Commits 2005-02-02 00:44 -------
Subject: Bug 19742

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2005-02-02 00:44:09

Modified files:
	gcc/java       : ChangeLog gjavah.c 

Log message:
	PR java/19742:
	* gjavah.c (get_field_name): Don't override name for JNI header.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1542&r2=1.1543
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/gjavah.c.diff?cvsroot=gcc&r1=1.127&r2=1.128


------- Comment #4 From Tom Tromey 2005-02-02 00:45 -------
Fix checked in

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug