This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/12741] New: Incompatable Return Type


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]