Patch: FYI: Fix bogus test cases

Bryce McKinlay mckinlay@redhat.com
Fri Jul 9 23:34:00 GMT 2004


This patch fixes some broken test cases in the libjava testsuite that 
are exposed by an upcoming patch.

pr10459.java: Given the expression "x.clone().clone()", the second 
clone() call is illegal under JLS section 6.6.2.1 because the type of 
the qualifier is not a subtype of the type where the access is made 
from. I've changed it to do the same thing but with its own method.

pr10459_2.java: This test case was identical to pr10459. I've removed it.

inner_data.java: These test case illegally referenced the private field 
"seed" in java.util.Random. I've changed it to reference a local 
protected field.

Regards

Bryce


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcj-testsuite.patch
Type: text/x-patch
Size: 1434 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040709/b7e7fae5/attachment.bin>


More information about the Java-patches mailing list