This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java/1297: gcjh still does not handle attribute with same name as method



>Number:         1297
>Category:       java
>Synopsis:       gcjh still does not handle attribute with same name as method
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bryce
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:18:50 PST 2000
>Closed-Date:    Tue Jul 04 18:21:43 PDT 2000
>Last-Modified:  Tue Jul  4 18:30:01 PDT 2000
>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:
See:
http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00013.html
>Release-Note:

>Audit-Trail:

Formerly PR gcj/276

Responsible-Changed-From-To: apbianco->bryce
Responsible-Changed-By: bryce
Responsible-Changed-When: Sun Jul  2 04:46:55 2000
Responsible-Changed-Why:
    I submitted
State-Changed-From-To: open->feedback
State-Changed-By: bryce
State-Changed-When: Sun Jul  2 04:46:55 2000
State-Changed-Why:
    a patch.

From: bryce@albatross.co.nz
To: apbianco@cygnus.com, bryce@albatross.co.nz,
  java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
Cc:  
Subject: Re: gcj/276
Date: 2 Jul 2000 11:46:55 -0000

 Synopsis: gcjh still does not handle attribute with same name as method
 
 Responsible-Changed-From-To: apbianco->bryce
 Responsible-Changed-By: bryce
 Responsible-Changed-When: Sun Jul  2 04:46:55 2000
 Responsible-Changed-Why:
     I submitted
 State-Changed-From-To: open->feedback
 State-Changed-By: bryce
 State-Changed-When: Sun Jul  2 04:46:55 2000
 State-Changed-Why:
     a patch.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=276&database=java
State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Tue Jul  4 18:21:43 2000
State-Changed-Why:
    Oskar reports that the fix worked, and I checked it in to cvs.

From: bryce@albatross.co.nz
To: bryce@albatross.co.nz, java-gnats@sourceware.cygnus.com,
  osk@hem.passagen.se
Cc:  
Subject: Re: gcj/276
Date: 5 Jul 2000 01:21:43 -0000

 Synopsis: gcjh still does not handle attribute with same name as method
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bryce
 State-Changed-When: Tue Jul  4 18:21:43 2000
 State-Changed-Why:
     Oskar reports that the fix worked, and I checked it in to cvs.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=276&database=java
>Unformatted:



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]