This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: String.toString()
>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
Bryce> Here's a more self contained test:
Bryce> [ ... ]
Could you check in this test? Put it in testsuite/libjava.lang.
Adding a new test is simple: add the .java file and the ".out" file
containing the expected output, and a ChangeLog entry. No messing
with the test harness required.
Bryce> I suppose that the compiler just needs to insert a test for
Bryce> this==null at the start of each final method?
Or perhaps at the call site. This might be better in the case where
we can discover that the object is definitely not null. (Though I
don't know whether gcc has the machinery to track this sort of thing;
I really know nothing about gcc.)
T