From 6e342fc10055ae5ee9623458a610b6754743a603 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Fri, 9 Jul 2004 23:36:51 +0000 Subject: [PATCH] Fix or remove some bogus test cases. 2004-07-09 Bryce McKinlay Fix or remove some bogus test cases. * testsuite/libjava.compile/pr10459_2.java: Removed. * testsuite/libjava.compile/pr10459.java: Test using its own method, not Object.clone(). * testsuite/libjava.compile/inner_data.java: Test against its own protected field. From-SVN: r84420 --- libjava/ChangeLog | 9 +++++++++ libjava/testsuite/libjava.compile/inner_data.java | 6 +++++- libjava/testsuite/libjava.compile/pr10459.java | 7 ++++++- libjava/testsuite/libjava.compile/pr10459_2.java | 10 ---------- 4 files changed, 20 insertions(+), 12 deletions(-) delete mode 100644 libjava/testsuite/libjava.compile/pr10459_2.java diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3a2a9b2b687..76cccd281d7 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,12 @@ +2004-07-09 Bryce McKinlay + + Fix or remove some bogus test cases. + * testsuite/libjava.compile/pr10459_2.java: Removed. + * testsuite/libjava.compile/pr10459.java: Test using its own method, + not Object.clone(). + * testsuite/libjava.compile/inner_data.java: Test against its own + protected field. + 2004-07-09 Michael Koch * scripts/unicode-muncher.pl: Updated to version 2.1 diff --git a/libjava/testsuite/libjava.compile/inner_data.java b/libjava/testsuite/libjava.compile/inner_data.java index 63d4902f366..0bb35e8902a 100644 --- a/libjava/testsuite/libjava.compile/inner_data.java +++ b/libjava/testsuite/libjava.compile/inner_data.java @@ -4,7 +4,7 @@ import java.util.Random; public class inner_data { - private class Randomer extends Random { + private class Randomer extends Super { public long xxx () { return seed; @@ -12,3 +12,7 @@ public class inner_data } } +class Super +{ + protected long seed; +} diff --git a/libjava/testsuite/libjava.compile/pr10459.java b/libjava/testsuite/libjava.compile/pr10459.java index 5bcc09c7326..e527f34d2a9 100644 --- a/libjava/testsuite/libjava.compile/pr10459.java +++ b/libjava/testsuite/libjava.compile/pr10459.java @@ -4,7 +4,12 @@ public class pr10459 public void aMethod() throws Throwable { - for (; ;x.clone().clone()) + for (; ;x.foo().foo()) ; } + + pr10459 foo() + { + return null; + } } diff --git a/libjava/testsuite/libjava.compile/pr10459_2.java b/libjava/testsuite/libjava.compile/pr10459_2.java deleted file mode 100644 index 5b878ca0c27..00000000000 --- a/libjava/testsuite/libjava.compile/pr10459_2.java +++ /dev/null @@ -1,10 +0,0 @@ -public class pr10459_2 -{ - pr10459_2 x; - - public void aMethod() throws Throwable - { - for (; ;x.clone().clone()) - break; - } -} -- 2.30.2