gcj/205: gcjh confused about similar method and attribute names

osk@hem.passagen.se osk@hem.passagen.se
Sun Apr 16 02:50:00 GMT 2000


>Number:         205
>Category:       gcj
>Synopsis:       gcjh confused about similar method and attribute names
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 16 02:50:02 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


More information about the Java-prs mailing list