This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/276: gcjh still does not handle attribute with same name as method
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/276: gcjh still does not handle attribute with same name as method
- From: osk at hem dot passagen dot se
- Date: 1 Jul 2000 19:37:09 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>Number: 276
>Category: gcj
>Synopsis: gcjh still does not handle attribute with same name as method
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 01 12:40:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
Debian GNU/Linux
GNU libc 2.1.3
gcc 2.96 snapshot 20000612
libgcj snapshot 2000-06-18
>Description:
The header generated with gcjh for this class is not correct:
class Test {
int insets;
public int getInsets() { return insets; }
public int insets() { return getInsets(); }
}
This is the relevant part of the generated header:
class ::Test : public ::java::lang::Object
{
public:
virtual jint getInsets () { return insets; }
virtual jint insets ();
public: // actually package-private
Test ();
jint insets__;
};
As you can see, the body of getInsets () should be "return insets__"
instead.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: