From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7919 invoked by alias); 10 Dec 2002 18:26:14 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7857 invoked by uid 71); 10 Dec 2002 18:26:11 -0000 Resent-Date: 10 Dec 2002 18:26:11 -0000 Resent-Message-ID: <20021210182611.7856.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, gbenson@redhat.com Received: (qmail 5389 invoked by uid 61); 10 Dec 2002 18:18:42 -0000 Message-Id: <20021210181842.5381.qmail@sources.redhat.com> Date: Tue, 10 Dec 2002 10:26:00 -0000 From: gbenson@redhat.com Reply-To: gbenson@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/8893: Local classes are named incorrectly X-SW-Source: 2002-12/txt/msg00566.txt.bz2 List-Id: >Number: 8893 >Category: java >Synopsis: Local classes are named incorrectly >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Dec 10 10:26:08 PST 2002 >Closed-Date: >Last-Modified: >Originator: gbenson@redhat.com >Release: gcc-3.2 patched for PR 1343 >Organization: >Environment: Red Hat Linux 8.0 >Description: The fix for PR 1343 is broken: although the names of local classes are prepended by a number, only one counter is used per source file. For example, the following code: | public class Test { | public void func1() { | class Foo { | } | class Bar { | } | } | public void func2() { | class Foo { | } | } | } compiles to Test.class, Test$1$Foo.class, Test$2$Bar.class and Test$3$Foo.class instead of Test.class, Test$1$Foo.class, Test$1$Bar.class and Test$2$Foo.class. >How-To-Repeat: gcj Test.java # attached >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="Test.java" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Test.java" cHVibGljIGNsYXNzIFRlc3QgewogICAgcHVibGljIHZvaWQgZnVuYzEoKSB7CgljbGFzcyBGb28g ewoJfQoJY2xhc3MgQmFyIHsKCX0KICAgIH0KICAgIHB1YmxpYyB2b2lkIGZ1bmMyKCkgewoJY2xh c3MgRm9vIHsKCX0KICAgIH0KfQo=