Patch to fix PR9861
Tom Tromey
tromey@redhat.com
Tue Sep 27 18:04:00 GMT 2005
>>>>> "TJ" == TJ Laurenzo <tlaurenzo@gmail.com> writes:
>> Also, constructors have no encoded return type. I guess that's OK,
>> but I was rather surprised.
TJ> The decision to exclude return types on constructors was based on a
TJ> list of C++ rules for excluding return types for members of template
TJ> classes.
It is weird, but valid, to have a method with the class' name in java.
Would we get a symbol clash for a class like this?
public class Weird {
public Weird (int x) { /* constructor */ }
public int Weird() { return 5; /* method */ }
}
Tom
More information about the Java-patches
mailing list