public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/5103: jni.h sets java-exceptions
@ 2001-12-13  9:06 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-12-13  9:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5103
>Category:       libgcj
>Synopsis:       jni.h sets java-exceptions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 13 09:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey <tromey@redhat.com>
>Release:        current cvs
>Organization:
>Environment:

>Description:
Right now our jni.h includes javaprims.h,
which has this line:

#pragma GCC java_exceptions

This is bad if the user is trying to compile
ordinary (non-CNI) C++ code.

The fix here is to write jni.h in a way that doesn't
assume you're using gcj.  

If we assume gcc we can still use the __mode__ extension
for typedefs.  Or, if we assume inttypes.h we can use another
method.  Failing that we'd have to introduce a platform-specific header.
We'll also need a "gcj-compatible" mode so that the
typedefs are omitted.  That will let us continue to include our jni.h
in jni.cc.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: libgcj/5103: jni.h sets java-exceptions
@ 2001-12-16 14:43 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-12-16 14:43 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, nobody, tromey, tromey

Synopsis: jni.h sets java-exceptions

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sun Dec 16 14:43:46 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sun Dec 16 14:43:46 2001
State-Changed-Why:
    Fixed.

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


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

end of thread, other threads:[~2001-12-16 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-13  9:06 libgcj/5103: jni.h sets java-exceptions tromey
2001-12-16 14:43 tromey

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).