public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20044] New: Wrong method call semantics (maybe instanceof/invokespecial)
@ 2005-02-18  0:01 bonniot at users dot sf dot net
  2005-02-18  0:53 ` [Bug java/20044] " bonniot at users dot sf dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: bonniot at users dot sf dot net @ 2005-02-18  0:01 UTC (permalink / raw)
  To: java-prs

This is a very small testcase, in which the code generated by gcj does not
behave correctly at runtime. I set the severity as critical because there is no
notification that something went wrong while the wrong method gets called, and I
see no workaround.

I suppose that there is a problem either with an instanceof test, or with the
implementation of invokespecial. Feel free to update the summary if this turns
out to be the wrong intuitition.

Attached are three small bytecode classes (I could not reproduce the bug from
Java sources).

# Normal behaviour, using Sun's JDK
$ java test.fun
true

$ gcj --main=test.fun test/*.class
$ ./a.out
false

Tested with gcj 4.0.0 20050212.

-- 
           Summary: Wrong method call semantics (maybe
                    instanceof/invokespecial)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonniot at users dot sf dot net
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i386-debian-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20044


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

end of thread, other threads:[~2006-07-19  3:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20044-6811@http.gcc.gnu.org/bugzilla/>
2005-12-15 15:54 ` [Bug java/20044] Wrong method call semantics (maybe instanceof/invokespecial) aph at gcc dot gnu dot org
2006-03-29 22:39 ` tromey at gcc dot gnu dot org
2006-07-19  3:52 ` pinskia at gcc dot gnu dot org
2005-02-18  0:01 [Bug java/20044] New: " bonniot at users dot sf dot net
2005-02-18  0:53 ` [Bug java/20044] " bonniot at users dot sf dot net
2005-02-18  1:36 ` pinskia at gcc dot gnu dot org
2005-02-18  4:52 ` pinskia at gcc dot gnu dot org
2005-02-18 14:52 ` tromey at gcc dot gnu dot org
2005-05-04 17:45 ` bkonrath at redhat dot com
2005-05-04 20:53 ` tromey at gcc dot gnu dot org
2005-05-16 14:45 ` aph at gcc dot gnu dot org

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