[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#141902: marked as done ([fixed in gcj-3.1] default constructor for inner class causes broken bytecode)



Your message dated Sat, 11 Jan 2003 04:32:44 -0500
with message-id <E18XI0S-00063c-00@auric.debian.org>
and subject line Bug#141902: fixed in gcc-3.0 1:3.0.4ds3-14
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Apr 2002 04:09:46 +0000
>From bab@ms.unimelb.edu.au Mon Apr 08 23:09:46 2002
Return-path: <bab@ms.unimelb.edu.au>
Received: from tincan.ms.unimelb.edu.au [128.250.24.200] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16umwz-0004iY-00; Mon, 08 Apr 2002 23:09:46 -0500
Received: from espresso.ms.unimelb.edu.au (unknown [128.250.24.139])
	by tincan.ms.unimelb.edu.au (Postfix) with ESMTP
	id BEF57194F1; Tue,  9 Apr 2002 14:09:44 +1000 (EST)
Received: from bab by espresso.ms.unimelb.edu.au with local (Exim 3.35 #1 (Debian))
	id 16umwy-0000eg-00; Tue, 09 Apr 2002 14:09:44 +1000
From: Ben Burton <benb@acm.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcj-3.0: default constructor for inner class causes broken bytecode
X-Mailer: reportbug 1.50
Date: Tue, 09 Apr 2002 14:09:44 +1000
Message-Id: <E16umwy-0000eg-00@espresso.ms.unimelb.edu.au>
Sender: Ben Burton <bab@ms.unimelb.edu.au>
Delivered-To: submit@bugs.debian.org

Package: gcj-3.0
Version: 1:3.0.4-6
Severity: normal

Hi.  I have the following piece of code that compiles correctly but then
gives an error when run.  It involves calling a default constructor for
an inner class.

If gcj won't accept this default constructor, it should give a compile
error.  If gcj will accept this default constructor, it should run
without errors.

Currently it compiles cleanly but produces broken bytecode; you don't
have a clue that anything's wrong until you happen to run that
particular piece of code.  This can be quite a problem in a large
project where it becomes difficult to test the execution of every possible
path through the software for compile breakages.

  public class Test {
      public static void main(String[] args) {
          new Test().sayHi();
      }

      public void sayHi() {
          new Foo().sayHi();
      }

      private class Foo {
          public void sayHi() {
              System.out.println("Hi");
          }
      }
  }

bab@espresso:/tmp> javac Test.java
bab@espresso:/tmp> java Test
Hi
bab@espresso:/tmp> gcj -C Test.java
bab@espresso:/tmp> java Test
Exception in thread "main" java.lang.VerifyError: (class: Test$Foo,
method: <init> signature: (LTest;)V) Expecting to find object/array on
stack
        at Test.sayHi(Test.java:10)
        at Test.main(Test.java:6)

Thanks - Ben.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux espresso 2.4.18-686 #2 Wed Mar 20 20:21:31 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcj-3.0 depends on:
ii  gcc-3.0                       1:3.0.4-6  The GNU C compiler.
ii  gcc-3.0-base                  1:3.0.4-6  The GNU Compiler Collection (base 
ii  java-common                   0.13       Base of all Java packages
ii  libc6                         2.2.5-4    GNU C Library: Shared libraries an
ii  libgcc1                       1:3.0.4-6  GCC support library.
ii  libgcj2                       1:3.0.4-6  Java runtime library for use with 
ii  libgcj2-dev                   1:3.0.4-6  Java development headers and stati
ii  zlib1g                        1:1.1.4-1  compression library - runtime


---------------------------------------
Received: (at 141902-close) by bugs.debian.org; 11 Jan 2003 09:36:42 +0000
>From katie@auric.debian.org Sat Jan 11 03:36:41 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18XI4H-0006zl-00; Sat, 11 Jan 2003 03:36:41 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18XI0S-00063c-00; Sat, 11 Jan 2003 04:32:44 -0500
From: Matthias Klose <doko@debian.org>
To: 141902-close@bugs.debian.org
X-Katie: $Revision: 1.29 $
Subject: Bug#141902: fixed in gcc-3.0 1:3.0.4ds3-14
Message-Id: <E18XI0S-00063c-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sat, 11 Jan 2003 04:32:44 -0500
Delivered-To: 141902-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
gcc-3.0, which is due to be installed in the Debian FTP archive:

gcc-3.0-base_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/gcc-3.0-base_3.0.4-14_i386.deb
gcc-3.0_3.0.4ds3-14.diff.gz
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.diff.gz
gcc-3.0_3.0.4ds3-14.dsc
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.dsc
libstdc++3_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/libstdc++3_3.0.4-14_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 141902@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-3.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Fri, 27 Dec 2002 18:53:57 +0100
Source: gcc-3.0
Binary: gcc-3.0-soft-float libstdc++3 gcc-3.0-base gcc-3.0-nof
Architecture: source i386
Version: 1:3.0.4ds3-14
Distribution: unstable
Urgency: low
Maintainer: Debian GCC maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 gcc-3.0-base - The GNU Compiler Collection (base package)
 libstdc++3 - The GNU stdc++ library version 3
Closes: 94974 97904 100722 102353 105741 107633 108036 111613 116128 119635 121636 121668 123687 125649 127802 127890 128026 131399 134315 135967 137017 137959 140606 140995 141899 141900 141902 143912 144232 144584 146634 150232 155900 156792 158371 164135 165180 167569 167673 172353 173290
Changes: 
 gcc-3.0 (1:3.0.4ds3-14) unstable; urgency=low
 .
   * Build libstdc++ runtime only (on HPPA build gcc-3.0 as well as the
     default compiler).
     Note: The libstdc++ runtime does not build on a glibc-2.3.1 based
     system!
   * Add SH support.
   * Backport patch from HEAD to build with bison > 1.35.
   * Install gcj-wrapper (closes: #143912, #156792, #173290). Well this
     doesn't help much as we don't build gcj-3.0 anymore ...
   * Install fixed gij-wrapper (closes: #167569). Doesn't help anymore.
   * Closing reports for the packages that are not built anymore from
     this source package and are fixed in a newer version (gcc-3.2.x),
     which becomes the default version now:
     - General:
       + Use mkstemp instead of mktemp (closes: #127802).
     - Preprocessor:
       + Fix redundant error message from cpp (closes: #100722).
     - C:
       + Optimization issue on ix86 (pointless moving) (closes: #97904).
       + Miscompilation of allegro on ix86 (closes: #105741).
       + Fix generation of ..ng references for static aliases (alpha-linux).
         (closes: #108036).
       + ICE compiling pari on hppa (closes: #111613).
       + ICE on ia64 in instantiate_virtual_regs_1 (closes: #121668).
       + ICE in c-typeck.c (closes: #123687).
       + ICE in gen_subprogram_die on alpha (closes: #127890).
       + SEGV in initialization of flexible char array member (closes: #131399).
       + ICE on arm compiling lapack (closes: #135967).
       + ICE in incomplete_type_error (closes: #140606).
       + Fix -Wswitch (also part of -Wall) (closes: #140995).
       + Wrong code in mke2fs on hppa (closes: #150232).
       + sin(a) * sin(b) gives wrong result (closes: #164135).
     - C++:
       + Error in std library headers on arm (closes: #107633).
       + ICE nr. 19970302 (closes: #119635).
       + std::wcout does not perform encoding conversions (closes: #128026).
       + SEGV, when compiling iostream.h with -fPIC (closes: #134315).
       + Fixed segmentation fault in included code for <rope> (closes: #137017).
       + Fix with exception handling and -O (closes: #144232).
       + Fix octave-2.1 build failure on ia64 (closes: #144584).
       + nonstandard overloads in num_get facet (closes: #155900).
       + ICE in expand_end_loop with -O (closes: #158371).
     - Fortran:
       + Fix blas build failure on arm (closes: #137959).
     - Java:
       + Interface members are public by default (closes: #94974).
       + Strange message with -fno-bounds-check in combination with -W.
         (closes: #102353).
       + Crash in FileWriter using IOException (closes: #116128).
       + Fix ObjectInputStream.readObject() calling constructors.
         (closes: #121636).
       + gij: better error reporting on `class not found' (closes: #125649).
       + Lockup during .java->.class compilation (closes: #141899).
       + Compile breaks using temporary inner class instance (closes: #141900).
       + Default constructor for inner class causes broken bytecode.
         (closes: #141902).
       + gij-3.2 linked against libgcc1 (closes: #165180).
       + gij-wrapper understands -classpath parameter (closes: #146634).
       + gij-3.2 doesn't ignore -jar when run as "java" (closes: #167673).
     - ObjC;
       + ICE on alpha (closes: #172353).
   * Reassign unfixed bugs to the corresponding -3.2.x package:
     reassign 94701 gcc-3.2
     reassign 95318 gcc-3.2
     reassign 105309 gcc-3.2
     reassign 106866 gcc-3.2
     reassign 121282 gcc-3.2
     reassign 122103 gcc-3.2
     reassign 128950 gcc-3.2
     reassign 128993 gcc-3.2
     reassign 140201 libstdc++5
     reassign 151357 g++-3.2
     reassign 165635 gcj-3.2
Files: 
 ba55ec232ff94f84b493028fada10f61 1317 devel standard gcc-3.0_3.0.4ds3-14.dsc
 c39d2af4372576c676f374f5669c0048 4988358 devel standard gcc-3.0_3.0.4ds3-14.diff.gz
 39f6491a8438a6bf4ea5f2c85a571cc6 114972 devel oldlibs gcc-3.0-base_3.0.4-14_i386.deb
 d540a3f1876db903f74a7202129ee90f 203406 base standard libstdc++3_3.0.4-14_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBPhCoJguDzMCIcnEhAQGgjwgAqhlamoPOz3LtFEwsJVuKpVPse46uqTkF
pslL9tam7LCm33tU5n5sla90r2K79p9Nw4XE+PCIoudcUIgBvCuSeanS6Fp/MTjP
nPkIL928SWtMcTz134h2bxRr4gGJ0O4xcwcJFe5wD9BnZo8IDgNL7cMDEkI0Qe1j
mBS8wuEEy12GWUKYtxqAqnFtYN9OEizc48HBMrf/MTK9ND0Yg6WmlAK+G7L0qI7i
p0yJNarZ/CZ3jCzxieeXfaRHpxdmpwq44d3ppRuNZcKgQ2AnrNO57FBdJJeqpRCb
jCEqIxDn4VrimXhpyTX84Kdd3k1sEwpJ8ibz/tZDIKU/H2SGujWmbw==
=o8J1
-----END PGP SIGNATURE-----



Reply to: