public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/12741] New: Incompatable Return Type
@ 2003-10-23 9:59 wcrisman at softwarezealot dot com
2003-10-24 4:52 ` [Bug java/12741] " bryce at mckinlay dot net dot nz
2004-05-05 15:32 ` [Bug java/12741] Error when package-private method matches superclass method with same name bryce at mckinlay dot net dot nz
0 siblings, 2 replies; 3+ messages in thread
From: wcrisman at softwarezealot dot com @ 2003-10-23 9:59 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12741
Summary: Incompatable Return Type
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wcrisman at softwarezealot dot com
CC: gcc-bugs at gcc dot gnu dot org
Using the MinGW build of GCC3.4 build 20031006 on win2k.
Received a compile error on code similar to the following:
package com.test;
public class A {
boolean myMethod();
}
package com.test.sub;
public class B {
void myMethod();
}
The compiler complains that the return types don't match. This should be
acceptable since the two methods have package visiblity and the two classes are
in different packages.
Hope this is helpful.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/12741] Incompatable Return Type
2003-10-23 9:59 [Bug java/12741] New: Incompatable Return Type wcrisman at softwarezealot dot com
@ 2003-10-24 4:52 ` bryce at mckinlay dot net dot nz
2004-05-05 15:32 ` [Bug java/12741] Error when package-private method matches superclass method with same name bryce at mckinlay dot net dot nz
1 sibling, 0 replies; 3+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-10-24 4:52 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12741
bryce at mckinlay dot net dot nz changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-24 02:03:29
date| |
------- Additional Comments From bryce at mckinlay dot net dot nz 2003-10-24 02:03 -------
Confirmed on mainline/linux.
The test-case isn't quite right however, here's a correct one:
package com.test;
public class A
{
Object myMethod() {return null;}
}
package com.test.sub;
import com.test.*;
public class B extends A
{
void myMethod() {}
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug java/12741] Error when package-private method matches superclass method with same name
2003-10-23 9:59 [Bug java/12741] New: Incompatable Return Type wcrisman at softwarezealot dot com
2003-10-24 4:52 ` [Bug java/12741] " bryce at mckinlay dot net dot nz
@ 2004-05-05 15:32 ` bryce at mckinlay dot net dot nz
1 sibling, 0 replies; 3+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2004-05-05 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bryce at mckinlay dot net dot nz 2004-05-05 15:32 -------
*** Bug 14979 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ovidr at users dot
| |sourceforge dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12741
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-05 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-23 9:59 [Bug java/12741] New: Incompatable Return Type wcrisman at softwarezealot dot com
2003-10-24 4:52 ` [Bug java/12741] " bryce at mckinlay dot net dot nz
2004-05-05 15:32 ` [Bug java/12741] Error when package-private method matches superclass method with same name bryce at mckinlay dot net dot nz
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).