public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1180: gcjh confused about similar method and attribute names
@ 2000-12-20 12:21 osk
  0 siblings, 0 replies; only message in thread
From: osk @ 2000-12-20 12:21 UTC (permalink / raw)
  To: java-gnats

>Number:         1180
>Category:       java
>Synopsis:       gcjh confused about similar method and attribute names
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tromey
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:17:05 PST 2000
>Closed-Date:    Sun Apr 16 22:52:20 PDT 2000
>Last-Modified:  Sun Apr 16 23:00:00 PDT 2000
>Originator:     Oskar Liljeblad
>Release:        2.96 20000313
>Organization:
>Environment:
Debian GNU/Linux 2.2 (libc 2.1.3; kernel 2.2.14)
>Description:
In Java, method and attribute names are in different
namespaces. gcjh tries to take care of this when there's a
confusion, like the 'foo' method and the 'foo'
attribute in this class:

  class Test {
    public int foo;
    public int foo() { return foo; }
  }

The relevant output of gcjh here is:

  virtual jint foo () { return foo; }
  jint foo__;

As you can see, the "inlined" method should really
return foo__, not foo.

Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/205


From: Bryce McKinlay <bryce@albatross.co.nz>
To: osk@hem.passagen.se
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/205: gcjh confused about similar method and attribute names
Date: Mon, 17 Apr 2000 13:32:51 +1200

 osk@hem.passagen.se wrote:
 
 > As you can see, the "inlined" method should really
 > return foo__, not foo.
 
 Thanks for the bug report. This reminds me of PR gcj/75, which is listed
 as "open" and claims that gcjh will not accept such classes at all. It
 looks as though the bug has been partially fixed (duplicate field names
 are suffixed with "__"), but "inlined" methods are not apparantly aware of
 this.
 
 regards
 
   [ bryce ]
 
 
Responsible-Changed-From-To: apbianco->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sun Apr 16 19:55:06 2000
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Sun Apr 16 19:55:06 2000
State-Changed-Why:
    I checked in a fix for this.
    Could you try it out and get back to me?

From: tromey@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  osk@hem.passagen.se, tromey@cygnus.com
Cc:  
Subject: Re: gcj/205
Date: 17 Apr 2000 02:55:06 -0000

 Synopsis: gcjh confused about similar method and attribute names
 
 Responsible-Changed-From-To: apbianco->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Sun Apr 16 19:55:06 2000
 Responsible-Changed-Why:
     Mine.
 State-Changed-From-To: open->feedback
 State-Changed-By: tromey
 State-Changed-When: Sun Apr 16 19:55:06 2000
 State-Changed-Why:
     I checked in a fix for this.
     Could you try it out and get back to me?
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=205&database=java

From: Bryce McKinlay <bryce@albatross.co.nz>
To: tromey@cygnus.com
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/205
Date: Mon, 17 Apr 2000 17:45:28 +1200

 tromey@cygnus.com wrote:
 
 >      I checked in a fix for this.
 >      Could you try it out and get back to me?
 
 It works for me. PR gcj/75 can probibly be closed as well.
 
 regards
 
   [ bryce ]
 
 
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Sun Apr 16 22:52:20 2000
State-Changed-Why:
    Bryce reports it as working.

From: tromey@cygnus.com
To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se, tromey@cygnus.com
Cc:  
Subject: Re: gcj/205
Date: 17 Apr 2000 05:52:20 -0000

 Synopsis: gcjh confused about similar method and attribute names
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: tromey
 State-Changed-When: Sun Apr 16 22:52:20 2000
 State-Changed-Why:
     Bryce reports it as working.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=205&database=java
>Unformatted:



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-20 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:21 java/1180: gcjh confused about similar method and attribute names osk

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