public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/24442] New: wrong class instantiated
@ 2005-10-19 13:01 aph at gcc dot gnu dot org
2005-10-19 13:02 ` [Bug java/24442] " aph at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-10-19 13:01 UTC (permalink / raw)
To: java-prs
public class SameName
{
public Object foo ()
{
class SingleName
{
public String toString ()
{
return "foo.SingleName";
}
}
return new SingleName ();
}
public Object bar ()
{
class SingleName
{
public String toString ()
{
throw new RuntimeException ("bar.SingleName");
}
}
return new SingleName ();
}
public static void main (String[] args)
{
System.out.println (new SameName ().foo().toString());
}
}
cagney@localhost$ ./a.out
Exception in thread "main" java.lang.RuntimeException: bar.SingleName
at SameName$2$SingleName.toString() (Unknown Source)
at SameName.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
--
Summary: wrong class instantiated
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: aph at gcc dot gnu dot org
ReportedBy: aph at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24442
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/24442] wrong class instantiated
2005-10-19 13:01 [Bug java/24442] New: wrong class instantiated aph at gcc dot gnu dot org
@ 2005-10-19 13:02 ` aph at gcc dot gnu dot org
2005-10-19 13:15 ` [Bug java/24442] wrong inner " pinskia at gcc dot gnu dot org
2006-08-28 16:57 ` aph at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2005-10-19 13:02 UTC (permalink / raw)
To: java-prs
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-19 13:02:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24442
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/24442] wrong inner class instantiated
2005-10-19 13:01 [Bug java/24442] New: wrong class instantiated aph at gcc dot gnu dot org
2005-10-19 13:02 ` [Bug java/24442] " aph at gcc dot gnu dot org
@ 2005-10-19 13:15 ` pinskia at gcc dot gnu dot org
2006-08-28 16:57 ` aph at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-19 13:15 UTC (permalink / raw)
To: java-prs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-19 13:15 -------
This is very related to PR 12257 which is a crash for inner classes with the
same name.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |12257
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24442
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug java/24442] wrong inner class instantiated
2005-10-19 13:01 [Bug java/24442] New: wrong class instantiated aph at gcc dot gnu dot org
2005-10-19 13:02 ` [Bug java/24442] " aph at gcc dot gnu dot org
2005-10-19 13:15 ` [Bug java/24442] wrong inner " pinskia at gcc dot gnu dot org
@ 2006-08-28 16:57 ` aph at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-28 16:57 UTC (permalink / raw)
To: java-prs
------- Comment #2 from aph at gcc dot gnu dot org 2006-08-28 16:57 -------
This will be fixed with ecj.
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24442
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-28 16:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-19 13:01 [Bug java/24442] New: wrong class instantiated aph at gcc dot gnu dot org
2005-10-19 13:02 ` [Bug java/24442] " aph at gcc dot gnu dot org
2005-10-19 13:15 ` [Bug java/24442] wrong inner " pinskia at gcc dot gnu dot org
2006-08-28 16:57 ` aph at gcc dot gnu dot org
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).