public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/7660: g++ from Java screws up my JNI code
@ 2002-08-31  0:06 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-08-31  0:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, mnewcomb, nobody, tromey

Synopsis: g++ from Java screws up my JNI code

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Fri Aug 30 22:46:50 2002
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Fri Aug 30 22:46:50 2002
State-Changed-Why:
    Thanks for your report.
    
    I believe this problem is fixed in the most recent gcj
    release (gcc 3.2).  Now the CNI definitions for jobject
    and the like are visible only to the libgcj implementation
    itself; user programs using our <jni.h> should work just
    as they would with Sun's header.
    
    If you try this and it turns out to have a problem, we
    can reopen this PR.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7660


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libgcj/7660: g++ from Java screws up my JNI code
@ 2002-08-20  9:46 Michael Newcomb
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Newcomb @ 2002-08-20  9:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7660
>Category:       libgcj
>Synopsis:       g++ from Java screws up my JNI code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 20 09:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michael Newcomb
>Release:        3.0.3
>Organization:
Northrop Grumman IT
>Environment:
System: Linux localhost.localdomain 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure 
>Description:
I have a JNI program that works fine when I build it from make.  However, when I build it using Ant, g++ starts treating my JNI natives (jobject, jstring, jthrowable) as stuff from javaprims.h (java::lang::Object, java::lang::String, java::lang::Throwable).
It seems as though it thinks that since its being invoked from a Java process, it has the right to use the GCJ stuff.  I know this because I can copy/paste the output from ant into an xterm and it compiles fine.
>How-To-Repeat:
Get some JNI code and try to compile it with g++ from Ant.
>Fix:
Don't try to invoke g++ from within a Java process...  WTF is up with that?
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-31  5:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-31  0:06 libgcj/7660: g++ from Java screws up my JNI code tromey
  -- strict thread matches above, loose matches on Subject: below --
2002-08-20  9:46 Michael Newcomb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).