This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12741] New: Incompatable Return Type
- From: "wcrisman at softwarezealot dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2003 09:32:19 -0000
- Subject: [Bug java/12741] New: Incompatable Return Type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.