public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* java/8893: Local classes are named incorrectly
@ 2002-12-10 10:26 gbenson
  0 siblings, 0 replies; 2+ messages in thread
From: gbenson @ 2002-12-10 10:26 UTC (permalink / raw)
  To: gcc-gnats


>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=


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

* Re: java/8893: Local classes are named incorrectly
@ 2002-12-11  9:43 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-12-11  9:43 UTC (permalink / raw)
  To: gbenson, gcc-bugs, gcc-prs, java-prs, nobody, tromey

Synopsis: Local classes are named incorrectly

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Wed Dec 11 09:43:50 2002
Responsible-Changed-Why:
    I'm handling this
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Wed Dec 11 09:43:50 2002
State-Changed-Why:
    Reporter agrees it can be closed;
    new bug is 8899.

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


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

end of thread, other threads:[~2002-12-11 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 10:26 java/8893: Local classes are named incorrectly gbenson
2002-12-11  9: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).