public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/5134: bug in gnu.gcj.runtime.StringBuffer
@ 2001-12-16 13:46 olivier
0 siblings, 0 replies; 2+ messages in thread
From: olivier @ 2001-12-16 13:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 5134
>Category: java
>Synopsis: bug in gnu.gcj.runtime.StringBuffer
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 16 13:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: olivier@zipworld.com.au
>Release: gcc version 3.1 20011211 (experimental)
>Organization:
>Environment:
Reading specs from /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../../program/cvs/gcc/configure --prefix=/usr/local/gcc --enable-shared --enable-threads=posix --enable-languages=c++,java
Thread model: posix
gcc version 3.1 20011211 (experimental)
>Description:
gcj does not handle correctly the concatenation of two
String in some cases (see attached example).
gcj calls a gnu.gcj.runtime.StringBuffer and then throws
an .ArrayIndexOutOfBoundsException!!!
This seems to happen only when the two String exceed 34
characters. With one less character, the example code
works.
>How-To-Repeat:
gcj --main=A A.java
./a.out
>Fix:
Unknown...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="A.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="A.java"
cHVibGljIGNsYXNzIEEgCnsKICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJn
cykgCiAgIHsKICAgICAgU3RyaW5nIGEgPSAiMDEiOwogICAgICBTdHJpbmcgYiA9ICIyMzQ1Njc4
OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQiOwogICAgICBhID0gYSArIGI7CiAgICAgIFN5c3Rl
bS5vdXQucHJpbnRsbihhKTsKICAgfQp9Cg==
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: java/5134: bug in gnu.gcj.runtime.StringBuffer
@ 2001-12-16 14:36 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-12-16 14:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, nobody, olivier, tromey
Synopsis: bug in gnu.gcj.runtime.StringBuffer
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sun Dec 16 14:36:44 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:36:44 2001
State-Changed-Why:
I'm closing the PR, since the fix went in on 12-12.
Please try a newer snapshot.
If that still fails, we can reopen the PR.
I think that is unlikely, though, as your test case
works fine for me.
Thanks.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5134
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-16 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-16 13:46 java/5134: bug in gnu.gcj.runtime.StringBuffer olivier
2001-12-16 14:36 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).