public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/3285: gcj fails to resolve constructor calls in inner classes
@ 2001-06-20 2:56 p.thio
0 siblings, 0 replies; 3+ messages in thread
From: p.thio @ 2001-06-20 2:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 3285
>Category: java
>Synopsis: gcj fails to resolve constructor calls in inner classes
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 20 02:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: p.thio@valescom.com
>Release: unknown-1.0
>Organization:
>Environment:
gcj gcc_ss_20010611 on linux
>Description:
Compile the following code with gcj. The code compiles with javac.
gcj --main=Test Test.java
Test.java: In class `Test$1':
Test.java: In method `(Test,C1)':
Test.java:25: No constructor matching `(Test,C1)' found in class `C2'.
C1 c1 = new C1();
^
1 error
--------------- Test.java -----------------------------
interface I
{
};
class C1
implements I
{
}
abstract
class C2
{
C2(I i)
{
}
abstract void h();
}
public
class Test
{
public static
void main(String argv[])
{
C1 c1 = new C1();
new C2(c1)
{
void h()
{
}
};
}
}
>How-To-Repeat:
use: gcj --main=Test Test.java
>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"
aW50ZXJmYWNlIEkKewp9OwoKY2xhc3MgQzEKaW1wbGVtZW50cyBJCnsKfQoKYWJzdHJhY3QKY2xh
c3MgQzIKewogICAgQzIoSSBpKQogICAgewogICAgfQogICAgYWJzdHJhY3Qgdm9pZCBoKCk7Cn0K
CnB1YmxpYwpjbGFzcyBUZXN0CnsKICAgIHB1YmxpYyBzdGF0aWMKICAgIHZvaWQgbWFpbihTdHJp
bmcgYXJndltdKQogICAgewogICAgICAgIEMxIGMxID0gbmV3IEMxKCk7CiAgICAgICAgbmV3IEMy
KGMxKQogICAgICAgIHsKICAgICAgICAgICAgdm9pZCBoKCkKICAgICAgICAgICAgewogICAgICAg
ICAgICB9CiAgICAgICAgfTsKICAgIH0KfQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java/3285: gcj fails to resolve constructor calls in inner classes
@ 2001-07-12 0:54 apbianco
0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2001-07-12 0:54 UTC (permalink / raw)
To: apbianco, gcc-bugs, gcc-prs, java-prs, nobody, p.thio
Synopsis: gcj fails to resolve constructor calls in inner classes
Responsible-Changed-From-To: unassigned->apbianco
Responsible-Changed-By: apbianco
Responsible-Changed-When: Thu Jul 12 00:54:56 2001
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Jul 12 00:54:56 2001
State-Changed-Why:
I have a patch I attached and I'll be checking that in
shortly once I'm done with my tests. I'm putting your
example in the test framework.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=3285&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java/3285: gcj fails to resolve constructor calls in inner classes
@ 2001-12-15 8:37 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2001-12-15 8:37 UTC (permalink / raw)
To: apbianco, gcc-bugs, gcc-prs, java-prs, p.thio
Synopsis: gcj fails to resolve constructor calls in inner classes
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 15 08:37:01 2001
State-Changed-Why:
Fixed in CVS.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3285
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-15 16:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-20 2:56 java/3285: gcj fails to resolve constructor calls in inner classes p.thio
2001-07-12 0:54 apbianco
2001-12-15 8:37 rodrigc
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).