------- Additional Comments From wasabi at larvalstage dot net  2005-01-08 
04:53 -------
Are you sure this is a bug?

Quote from the JLS:
http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html

8.4.6.3 Requirements in Overriding and Hiding
If a method declaration overrides or hides the declaration of another method,
then a compile-time error occurs if they have different return types or if one
has a return type and the other is void. Moreover, a method declaration must not
have a throws clause that conflicts (§8.4.4) with that of any method that it
overrides or hides; otherwise, a compile-time error occurs.

That tells me that a compile time error SHOULD occure because the return types
are different.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14979

Reply via email to