[Bug java/12741] New: Incompatable Return Type
wcrisman at softwarezealot dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 23 09:59:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list