*** empty log message ***
[cacao.git] / tests / jvm98 / check.diff
1 diff -u check1/FloatingPointCheck.java check/FloatingPointCheck.java
2 --- check1/FloatingPointCheck.java      Wed Jun 17 22:14:10 1998
3 +++ check/FloatingPointCheck.java       Fri Oct 25 16:11:23 2002
4 @@ -47,9 +47,6 @@
5   * End of sample execution
6   */
7  
8 -package spec.benchmarks._200_check;
9 -import spec.harness.Context;
10 -
11  public class FloatingPointCheck {
12  
13      //  Level of print output produced
14 @@ -97,21 +94,21 @@
15         if (check != 0.0) {
16             error = true;
17             if (print) {
18 -               Context.out.println("Ooops: double range too big near 0");
19 +               System.out.println("Ooops: double range too big near 0");
20             }
21         }
22  
23         if (print && verbose) {
24             // Some diagnostics
25 -           Context.out.println("       tiny:             " +
26 +           System.out.println("        tiny:             " +
27                                doubleTiny);
28 -           Context.out.println("       tiny/small:       " +
29 +           System.out.println("        tiny/small:       " +
30                                (doubleTiny/doubleSmall));
31 -           Context.out.println("       (tiny/small)*big: " +
32 +           System.out.println("        (tiny/small)*big: " +
33                                ((doubleTiny/doubleSmall)*doubleBig));
34 -           Context.out.println("       MIN_VALUE*big:    " +
35 +           System.out.println("        MIN_VALUE*big:    " +
36                                (Double.MIN_VALUE*doubleBig));
37 -           Context.out.println("       (tiny*big)/small: " +
38 +           System.out.println("        (tiny*big)/small: " +
39                                ((doubleTiny*doubleBig)/doubleSmall));
40         }
41  
42 @@ -127,16 +124,16 @@
43         if ( check != Double.POSITIVE_INFINITY ) {
44             error = true;
45             if (print) {
46 -               Context.out.println("Ooops: double range too big near infinity");
47 +               System.out.println("Ooops: double range too big near infinity");
48             }
49         }
50         if (print && verbose) {
51             // Some diagnostics
52 -           Context.out.println("       huge:             " +
53 +           System.out.println("        huge:             " +
54                                doubleHuge);
55 -           Context.out.println("       huge*small:       " +
56 +           System.out.println("        huge*small:       " +
57                                (doubleHuge*doubleSmall));
58 -           Context.out.println("       (huge*small)/big: " +
59 +           System.out.println("        (huge*small)/big: " +
60                                ((doubleHuge*doubleSmall)/doubleBig));
61         }
62      }
63 @@ -148,21 +145,21 @@
64         if (check != 0.0) {
65             error = true;
66             if (print) {
67 -               Context.out.println("Ooops: float range too big near 0");
68 +               System.out.println("Ooops: float range too big near 0");
69             }
70         }
71  
72         if (print && verbose) {
73             // Some diagnostics
74 -           Context.out.println("       tiny:             " +
75 +           System.out.println("        tiny:             " +
76                                floatTiny);
77 -           Context.out.println("       tiny/small:       " +
78 +           System.out.println("        tiny/small:       " +
79                                (floatTiny/floatSmall));
80 -           Context.out.println("       (tiny/small)*big: " +
81 +           System.out.println("        (tiny/small)*big: " +
82                                ((floatTiny/floatSmall)*floatBig));
83 -           Context.out.println("       MIN_VALUE*big:    " +
84 +           System.out.println("        MIN_VALUE*big:    " +
85                                (Float.MIN_VALUE*floatBig));
86 -           Context.out.println("       (tiny*big)/small: " +
87 +           System.out.println("        (tiny*big)/small: " +
88                                ((floatTiny*floatBig)/floatSmall));
89         }
90  
91 @@ -170,16 +167,16 @@
92         if ( check != Float.POSITIVE_INFINITY ) {
93             error = true;
94             if (print) {
95 -               Context.out.println("Ooops: float range too big near infinity");
96 +               System.out.println("Ooops: float range too big near infinity");
97             }
98         }
99         if (print && verbose) {
100             // Some diagnostics
101 -           Context.out.println("       huge:             " +
102 +           System.out.println("        huge:             " +
103                                floatHuge);
104 -           Context.out.println("       huge*small:       " +
105 +           System.out.println("        huge*small:       " +
106                                (floatHuge*floatSmall));
107 -           Context.out.println("       (huge*small)/big: " +
108 +           System.out.println("        (huge*small)/big: " +
109                                ((floatHuge*floatSmall)/floatBig));
110         }
111      }
112 @@ -195,18 +192,18 @@
113         if (check != 0.0) {
114             error = true;
115             if (print) {
116 -               Context.out.println("Ooops: double precision too big near 1");
117 +               System.out.println("Ooops: double precision too big near 1");
118             }
119         }
120         if (print && verbose) {
121             //  Some diagnostics
122 -           Context.out.println("       eps:    " +
123 +           System.out.println("        eps:    " +
124                                doubleEpsilon );
125 -           Context.out.println("       eps:    0x" +
126 +           System.out.println("        eps:    0x" +
127                                Long.toString(Double.doubleToLongBits(doubleEpsilon), 16));
128 -           Context.out.println("       1+eps:  " +
129 +           System.out.println("        1+eps:  " +
130                                (doubleOne+doubleEpsilon) );
131 -           Context.out.println("       (1+eps)-1:      " +
132 +           System.out.println("        (1+eps)-1:      " +
133                                ((doubleOne+doubleEpsilon)-doubleOne) );
134         }
135      }
136 @@ -223,18 +220,18 @@
137         if (check != 0.0) {
138             error = true;
139             if (print) {
140 -               Context.out.println("Ooops: float precision too big near 1");
141 +               System.out.println("Ooops: float precision too big near 1");
142             }
143         }
144         if (print && verbose) {
145             //  Some diagnostics
146 -           Context.out.println("       eps:    " +
147 +           System.out.println("        eps:    " +
148                                floatEpsilon );
149 -           Context.out.println("       eps:    0x" +
150 +           System.out.println("        eps:    0x" +
151                                Integer.toString(Float.floatToIntBits(floatEpsilon), 16));
152 -           Context.out.println("       1+eps:  " +
153 +           System.out.println("        1+eps:  " +
154                                (floatOne+floatEpsilon) );
155 -           Context.out.println("       (1+eps)-1:      " +
156 +           System.out.println("        (1+eps)-1:      " +
157                                ((floatOne+floatEpsilon)-floatOne) );
158         }
159      }
160 @@ -254,7 +251,7 @@
161         // compiler with a floating point bug might pass at say 1% where
162         // it hadn't fully compiled everything, but then fail at 100%
163         // after it compiled erroneously
164 -       Context.out.println("FloatingPointCheck");
165 +       System.out.println("FloatingPointCheck");
166         int count;
167         for (count = 0; count < 1*10000*length; count += 1) {
168             test(false);
169 @@ -262,9 +259,9 @@
170         // Run it once to get the answers
171         test(true);
172         if (error)
173 -           Context.out.println ("Error");
174 +           System.out.println ("Error");
175         else
176 -           Context.out.println ("OK");
177 +           System.out.println ("OK");
178      }
179  
180      public static void main(String[] args) {
181 diff -u check1/LoopBounds.java check/LoopBounds.java
182 --- check1/LoopBounds.java      Wed Jun 17 22:14:11 1998
183 +++ check/LoopBounds.java       Fri Oct 25 22:31:48 2002
184 @@ -15,10 +15,7 @@
185   * Walter Bays
186   */
187  
188 -package spec.benchmarks._200_check;
189 -import spec.harness.*;
190  import java.util.Vector;
191 -import spec.benchmarks._200_check.*;
192  
193  class LoopBounds {
194  
195 @@ -50,9 +47,9 @@
196      public void execute(){
197          for (int i= 0; i < size(); ++i) {
198             //System.out.println ("v.size()=" + v.size() + " size()=" + size());
199 -            Context.out.print (constraintAt(i) + " ");
200 +            System.out.print (constraintAt(i) + " ");
201          }
202 -        Context.out.println();
203 +        System.out.println();
204      }
205  
206      public static void main (String[] args){
207 @@ -61,20 +58,22 @@
208  
209      public static void run (){
210          (new LoopBounds()).execute();
211 -        String name = "spec.benchmarks._200_check.LoopBounds2";
212 +/*
213 +        String name = "LoopBounds2";
214          try{
215              Class c = Class.forName (name);
216              Object o = c.newInstance();
217              if (! (o instanceof LoopBounds)){
218 -                Context.out.println (name + " is not a LoopBounds\n");
219 +                System.out.println (name + " is not a LoopBounds\n");
220                 gotError = true;
221                  return;
222              }
223              ((LoopBounds) o).execute();
224          }catch (Exception e){
225 -           Context.out.println ("Error " + e);
226 +           System.out.println ("Error " + e);
227             gotError = true;
228         }
229 +*/
230      }
231  
232  }//end LoopBounds
233 diff -u check1/Main.java check/Main.java
234 --- check1/Main.java    Wed Jun 17 22:14:12 1998
235 +++ check/Main.java     Fri Oct 25 16:17:32 2002
236 @@ -19,10 +19,7 @@
237   * fail output verification.
238   */
239  
240 -package spec.benchmarks._200_check;
241 -import spec.harness.*;
242 -
243 -public class Main implements SpecBenchmark {
244 +public class Main {
245  
246  ///////////////////////////////////////
247  //class variable field declarations
248 @@ -47,44 +44,45 @@
249          int[] a = new int[10];
250          for (int i=0; i<=10; i++)
251              a[i] = i;
252 -        spec.harness.Context.out.println("Error: array bounds not checked");
253 +        System.out.println("Error: array bounds not checked");
254      }catch (ArrayIndexOutOfBoundsException e){
255          caughtIndex = true;
256      }finally{
257          gotToFinally = true;
258      }
259      if (!caughtIndex)
260 -        spec.harness.Context.out.println("1st bounds test error:\tindex exception not received");
261 +        System.out.println("1st bounds test error:\tindex exception not received");
262      if (!gotToFinally)
263 -        spec.harness.Context.out.println("1st bounds test error:\tfinally clause not executed");
264 +        System.out.println("1st bounds test error:\tfinally clause not executed");
265      if (caughtIndex && gotToFinally)
266 -        spec.harness.Context.out.println("1st bounds test:\tOK");
267 +        System.out.println("1st bounds test:\tOK");
268      checkSubclassing();
269      LoopBounds mule = new LoopBounds();
270      mule.run();
271      if (mule.gotError)
272 -        spec.harness.Context.out.println("2nd bounds test:\tfailed");
273 +        System.out.println("2nd bounds test:\tfailed");
274      else
275 -        spec.harness.Context.out.println("2nd bounds test:\tOK");
276 +        System.out.println("2nd bounds test:\tOK");
277      PepTest horse = new PepTest();
278      horse.instanceMain();
279      if (horse.gotError)
280 -        spec.harness.Context.out.println("PepTest failed");
281 +        System.out.println("PepTest failed");
282      return 0;
283  }
284  
285  public static void main( String[] args ) {           
286      runBenchmark( args );
287 +    new FloatingPointCheck().run(100);
288  }
289  
290  private static void checkSubclassing(){
291      Super sup = new Super (3);
292      Sub   sub = new Sub   (3);
293 -    spec.harness.Context.out.println (sup.getName() + ": " + sup.toString());
294 -    spec.harness.Context.out.println (sub.getName() + ": " + sub.toString());
295 -    spec.harness.Context.out.println ("Super: prot=" + sup.getProtected() +
296 +    System.out.println (sup.getName() + ": " + sup.toString());
297 +    System.out.println (sub.getName() + ": " + sub.toString());
298 +    System.out.println ("Super: prot=" + sup.getProtected() +
299          ", priv=" + sup.getPrivate());
300 -    spec.harness.Context.out.println ("Sub:  prot=" + sub.getProtected() +
301 +    System.out.println ("Sub:  prot=" + sub.getProtected() +
302          ", priv=" + sub.getPrivate());
303  }
304  
305 diff -u check1/PepTest.java check/PepTest.java
306 --- check1/PepTest.java Wed Jun 17 22:14:13 1998
307 +++ check/PepTest.java  Fri Oct 25 16:12:43 2002
308 @@ -13,9 +13,6 @@
309   * This source code is provided as is, without any express or implied warranty.
310   */
311  
312 -package spec.benchmarks._200_check;
313 -import spec.harness.*;
314 -
315  class syncTest {
316    int x = 5;
317  
318 @@ -89,7 +86,7 @@
319    public boolean gotError = false;
320  
321    String testDiv() {
322 -    Context.out.print("testDiv:    ");
323 +    System.out.print("testDiv:    ");
324      int a, b;
325      long c, d;
326      double e, f;
327 @@ -141,7 +138,7 @@
328    }
329  
330    String testIf() {
331 -    Context.out.print("testIf:     ");
332 +    System.out.print("testIf:     ");
333      int a = 3, b, c;
334      b = a;
335      if(b * b == 9) 
336 @@ -217,7 +214,7 @@
337  
338    String testBitOps() {
339      /* Simple test of a few bit operations. By no means complete. */
340 -    Context.out.print("testBitOps: ");
341 +    System.out.print("testBitOps: ");
342      int v = 0xcafebabe;
343      if (shiftAnd(v, 24) != 0xca) return "bad shift-and 1";
344      if (shiftAnd(v, 16) != 0xfe) return "bad shift-and 2";
345 @@ -228,7 +225,7 @@
346  
347    String testFor() {
348      int s = 0;
349 -    Context.out.print("testFor:    ");
350 +    System.out.print("testFor:    ");
351      for (int a = 0; a < 100; a++)
352        for (int b = a; b >=0; b = b - 2)
353          s = a + s + b;
354 @@ -238,7 +235,7 @@
355    }
356  
357    String testTableSwitch() {
358 -    Context.out.print("testTableSwitch:  ");
359 +    System.out.print("testTableSwitch:  ");
360      int s = 2, r;
361      s = s * 3;
362      switch(s) {
363 @@ -270,7 +267,7 @@
364    }
365  
366    String testLookupSwitch() {
367 -    Context.out.print("testLookupSwitch: ");
368 +    System.out.print("testLookupSwitch: ");
369      int s = 2, r;
370      s = s * 3000;
371      switch(s) {
372 @@ -302,7 +299,7 @@
373    }
374  
375    String testHiddenField() {
376 -    Context.out.print("testHiddenField:  ");
377 +    System.out.print("testHiddenField:  ");
378      subClass f2 = new subClass();
379      superClass f1 = f2;
380      if (f1.val != 1) 
381 @@ -318,10 +315,10 @@
382  
383    void printTime() {
384      java.util.Date now = new java.util.Date();
385 -    Context.out.print("Time now is ");
386 -    Context.out.print(now.toString());
387 -    Context.out.print(",   ms: ");
388 -    Context.out.println(System.currentTimeMillis());
389 +    System.out.print("Time now is ");
390 +    System.out.print(now.toString());
391 +    System.out.print(",   ms: ");
392 +    System.out.println(System.currentTimeMillis());
393    }
394  
395    String checkInst(superClass x, boolean r1, boolean r2, boolean r3, int c) {
396 @@ -337,7 +334,7 @@
397    }
398  
399    String checkInstanceOf() {
400 -    Context.out.print("checkInstanceOf: ");
401 +    System.out.print("checkInstanceOf: ");
402  
403   /* subClass a[] = new subClass[2];
404      ((superClass[])a)[1] = new superClass(); */
405 @@ -363,7 +360,7 @@
406    }
407  
408    String checkInterfaceInstanceOf() {
409 -    Context.out.print("checkInterfaceInstanceOf: ");
410 +    System.out.print("checkInterfaceInstanceOf: ");
411      java.lang.Object c1 = new C1();
412      java.lang.Object c2 = new C2();
413      java.lang.Object c3 = new C3();
414 @@ -390,7 +387,7 @@
415    }
416  
417    String testExc1() {
418 -    Context.out.print("testExc1(simple throw/catch):  ");
419 +    System.out.print("testExc1(simple throw/catch):  ");
420      int x = 0;
421      try {
422        if (x == 0) x = 1; else x = -1;
423 @@ -413,7 +410,7 @@
424    }
425  
426    String testExc2() {
427 -    Context.out.print("testExc2(skip catch clauses):  ");
428 +    System.out.print("testExc2(skip catch clauses):  ");
429      int x = 0;
430      try {
431        if (x == 0) x = 1; else x = -1;
432 @@ -433,7 +430,7 @@
433    }
434  
435    String testExc3() {
436 -    Context.out.print("testExc3(catch in inner):      ");
437 +    System.out.print("testExc3(catch in inner):      ");
438      int x = 0;
439      try {
440        if (x == 0) x = 1; else x = -1;
441 @@ -457,7 +454,7 @@
442    }
443  
444    String testExc4() {
445 -    Context.out.print("testExc4(catch in outer):      ");
446 +    System.out.print("testExc4(catch in outer):      ");
447      int x = 0;
448      try {
449        if (x == 0) x = 1; else x = -1;
450 @@ -477,7 +474,7 @@
451    }
452  
453    String testExc5() {
454 -    Context.out.print("testExc5(rethrow):             ");
455 +    System.out.print("testExc5(rethrow):             ");
456      int x = 0;
457      try {
458        if (x == 0) x = 1; else x = -1;
459 @@ -498,7 +495,7 @@
460    }
461  
462    String testExc6() {
463 -    Context.out.print("testExc6(throw accross call):  ");
464 +    System.out.print("testExc6(throw accross call):  ");
465      int x = 0;
466      try {
467        x = 1;
468 @@ -514,7 +511,7 @@
469    }
470  
471    String testExc7() {
472 -    Context.out.print("testExc7(throw accr. 2 calls): ");
473 +    System.out.print("testExc7(throw accr. 2 calls): ");
474      int x = 0;
475      try {
476        x = 1;
477 @@ -540,7 +537,7 @@
478    final static int allocChunk = 50000;
479  
480    String testExc8() {
481 -    Context.out.print("testExc8(keep throwing; see if GC works): ");
482 +    System.out.print("testExc8(keep throwing; see if GC works): ");
483      System.gc();
484      Runtime runt = Runtime.getRuntime();
485      long freeSpace = runt.freeMemory();
486 @@ -572,7 +569,7 @@
487    }
488   
489    String testExc9() {
490 -    Context.out.print("testExc9(keep throwing accross fct; see if GC works): ");
491 +    System.out.print("testExc9(keep throwing accross fct; see if GC works): ");
492      System.gc();
493      Runtime runt = Runtime.getRuntime();
494      long freeSpace = runt.freeMemory();
495 @@ -612,7 +609,7 @@
496    
497  
498    String testStringHash() {
499 -    Context.out.print("testStringHash:  ");
500 +    System.out.print("testStringHash:  ");
501      String res;
502      /* These are the  JDK1.1 values.  */
503      if (null != (res = stringHash("monkey", -817689237, -1068495917)))  
504 @@ -630,7 +627,7 @@
505  
506  
507    String testObjectHash() {
508 -    Context.out.print("testObjectHash:  ");
509 +    System.out.print("testObjectHash:  ");
510      java.util.Hashtable ht = new java.util.Hashtable();
511      Integer ii;
512      for (int i = 0; i < 1000; i++) {
513 @@ -645,7 +642,7 @@
514    }
515  
516    String loopExitContinueInExceptionHandler() {
517 -    Context.out.print("loopExitContinueInExceptionHandler: ");
518 +    System.out.print("loopExitContinueInExceptionHandler: ");
519      int i = 0;
520      while(i < 10000) {
521        i++;
522 @@ -667,7 +664,7 @@
523    }
524  
525    String testClone() {
526 -    Context.out.print("testClone:       ");
527 +    System.out.print("testClone:       ");
528      int[] w, v = new int[100];   /* Check that we can clone arrays. */
529      for (int i = 0; i < v.length; i++) v[i] = i * i;
530      w = (int[])v.clone();
531 @@ -705,16 +702,16 @@
532    }
533  
534    void printInterfaces(java.lang.Class cl) {
535 -    Context.out.print(cl.getName() + ":  ");
536 +    System.out.print(cl.getName() + ":  ");
537      java.lang.Class intf[] = cl.getInterfaces();
538      for (int i = 0; i < intf.length; i++) {
539 -      Context.out.print(intf[i].getName() + " ");
540 +      System.out.print(intf[i].getName() + " ");
541        if (!intf[i].isInterface())
542 -        Context.out.println("Error: should have been an interface!");
543 +        System.out.println("Error: should have been an interface!");
544      }
545      if (0 == intf.length) 
546 -      Context.out.print("no interfaces");
547 -    Context.out.println();
548 +      System.out.print("no interfaces");
549 +    System.out.println();
550    }
551  
552    String testClass() {
553 @@ -754,7 +751,7 @@
554    }
555  
556    String testWaitNull() {
557 -    Context.out.print("testWaitNull: ");
558 +    System.out.print("testWaitNull: ");
559      try {
560        ((java.lang.Object)null).wait(43);
561      } catch (java.lang.Exception e) {
562 @@ -766,7 +763,7 @@
563    }
564  
565    String testVarAndMethodNameClash() {
566 -    Context.out.print("testVarAndMethodNameClash: ");
567 +    System.out.print("testVarAndMethodNameClash: ");
568      superClass s = new superClass();
569      int x;
570  
571 @@ -801,12 +798,12 @@
572  
573    void checkAllNull(java.lang.Object a[]) {
574      for (int i = 0; i < a.length; i++) {
575 -      if (a[i] != null) Context.out.println("error: should have been null");
576 +      if (a[i] != null) System.out.println("error: should have been null");
577      }
578    }
579  
580    String testObjectArray() {
581 -    Context.out.print("testObjectArray: ");
582 +    System.out.print("testObjectArray: ");
583      subClass   a[] = new   subClass[10];
584      superClass b[] = new superClass[10];
585  
586 @@ -910,9 +907,9 @@
587      if (a == 1)
588        throw(new java.lang.ArithmeticException("fisk"));
589      if (a == 1)
590 -      Context.out.println("should not print this");
591 +      System.out.println("should not print this");
592      else
593 -      Context.out.println("should print this");
594 +      System.out.println("should print this");
595    }
596  
597    int testDup() {
598 @@ -933,7 +930,7 @@
599    static int      staticIntArray[][] = {{1,2,3}, {4,5,6}};
600  
601    String testArray() {
602 -    Context.out.print("testArray:  ");
603 +    System.out.print("testArray:  ");
604      int x[];
605      x = new int[6];
606      x[4] = 3;
607 @@ -977,33 +974,33 @@
608    }
609  
610    void printPrimes() {
611 -    Context.out.print("Primes less than 50: ");
612 +    System.out.print("Primes less than 50: ");
613      for (int i = 2; i < 50; i++) {
614        if (isPrime(i)) {
615 -        Context.out.print(i);
616 -        Context.out.print(" ");
617 +        System.out.print(i);
618 +        System.out.print(" ");
619        }
620      }
621 -    Context.out.println("");
622 +    System.out.println("");
623    }
624  
625    public void Verify(String str) {
626      if (null == str || str.equals(""))
627 -      Context.out.println("OK");
628 +      System.out.println("OK");
629      else {
630        gotError = true;
631 -      Context.out.println();
632 -      Context.out.println("******************************************");
633 -      Context.out.println(str);
634 -      Context.out.println("******************************************");
635 +      System.out.println();
636 +      System.out.println("******************************************");
637 +      System.out.println(str);
638 +      System.out.println("******************************************");
639      }
640    }
641  
642    boolean checkRemL(long a, long b, long res) {
643      boolean ok = (res == a % b);
644      if (!ok) {
645 -      Context.out.print("Failed: " + a + " % " + b + " = " + (a % b));
646 -      Context.out.println("   (should be: " + res);
647 +      System.out.print("Failed: " + a + " % " + b + " = " + (a % b));
648 +      System.out.println("   (should be: " + res);
649      }
650      return ok;
651    }
652 @@ -1011,21 +1008,21 @@
653    boolean checkRemD(double a, double b, double res) {
654      boolean ok = (res == a % b);
655      if (!ok) {
656 -      Context.out.print("Failed: " + a + " % " + b + " = " + (a % b));
657 -      Context.out.println("   (should be: " + res);
658 +      System.out.print("Failed: " + a + " % " + b + " = " + (a % b));
659 +      System.out.println("   (should be: " + res);
660      }
661      return ok;
662    }
663  
664  
665    void printRemD(double a, double b) {
666 -    Context.out.print(a + " % " + b + " = " + (a % b));
667 +    System.out.print(a + " % " + b + " = " + (a % b));
668    }
669  
670    String checkRemainders() {
671 -    Context.out.print("checkRemainders: ");
672 +    System.out.print("checkRemainders: ");
673      boolean ok = true;
674 -    Context.out.print(" long ");
675 +    System.out.print(" long ");
676      if (!checkRemL( 10L,  7L, 3L))  ok = false;
677      if (!checkRemL( 10L, -7L, 3L))  ok = false;
678      if (!checkRemL(-10L,  7L, -3L)) ok = false;
679 @@ -1036,7 +1033,7 @@
680      if (!checkRemD(-10.5,  7.0, -3.5)) ok = false;
681      if (!checkRemD(-10.5, -7.0, -3.5)) ok = false;
682      if (!ok) return "remainders failed";
683 -    Context.out.print("double ");
684 +    System.out.print("double ");
685      return null; 
686    }
687  
688 @@ -1050,14 +1047,14 @@
689        m = ar;
690      if (m == 0.0) m = 1.0;
691      if ((v - r) / m > 0.0001) {
692 -      Context.out.println(exprStr + " evaluated to: " + v + ", expected: " + r);
693 +      System.out.println(exprStr + " evaluated to: " + v + ", expected: " + r);
694        return false;
695      }
696      return true;
697    }
698      
699    String checkMathFcts() {
700 -    Context.out.print("checkMathFcts: ");
701 +    System.out.print("checkMathFcts: ");
702      boolean ok = true; 
703      if (!checkClose("log(0.7)",  Math.log(0.7),  -0.356675)) ok = false;
704      if (!checkClose("sin(0.7)",  Math.sin(0.7),   0.644218)) ok = false;
705 @@ -1096,13 +1093,13 @@
706    }
707     
708    String testDeepStack() {
709 -    Context.out.print("testDeepStack: ");
710 +    System.out.print("testDeepStack: ");
711      if (deepRecursion(5555, 0) != (5555 * 5555 + 5555) / 2) return "failed";
712      return null;
713    }
714  
715    String testMisk() {
716 -    Context.out.print("testMisk: ");
717 +    System.out.print("testMisk: ");
718      String right = "-9223372036854775808";
719      if (!right.equals("" + ((long)1 << 63)))
720        return "(long)1 << 63 failed, returned: " + ((long)1 << 63) +
721 @@ -1134,7 +1131,7 @@
722    }
723  
724    String testGC() {
725 -    Context.out.print("testGC: ");
726 +    System.out.print("testGC: ");
727      byte[][] bytesArrays = new byte[1000][];
728      bytesArrays[0] = new byte[1000];  /* See if GC eats this array! */
729      Runtime.getRuntime().gc();
730 @@ -1156,7 +1153,7 @@
731  /*
732   * Skip file tests in an applet, wnb 2/13/98
733    String testFileOps() {
734 -    Context.out.print("testFileOps: ");
735 +    System.out.print("testFileOps: ");
736      java.io.File f = new java.io.File(".");
737      if (!f.isDirectory()) return "'.' is not a directory";
738      if (!f.exists())      return "'.' does not exist";
739 @@ -1208,11 +1205,11 @@
740  //  Don't perform fp accuracy check so that 80-bit intermediate values
741  //  will not be flagged as invalid. Per precedent of (osgjava-143) November
742  //  1997 minutes, and (osgjava-340) May 1998 minutes: specifications section
743 -//  (new FloatingPointCheck()).run (spec.harness.Context.getSpeed());
744 +//  (new FloatingPointCheck()).run (spec.harness.System.getSpeed());
745      if (gotError)
746 -      Context.out.println("****** PepTest found an error ******");
747 +      System.out.println("****** PepTest found an error ******");
748      else
749 -      Context.out.println("****** PepTest completed ******");
750 +      System.out.println("****** PepTest completed ******");
751    }
752  
753    public static void main(String[] args) {
754 diff -u check1/Sub.java check/Sub.java
755 --- check1/Sub.java     Wed Jun 17 22:14:14 1998
756 +++ check/Sub.java      Fri Oct 25 16:12:54 2002
757 @@ -9,8 +9,6 @@
758   * See what happens here where we subclass Super
759   */
760  
761 -package spec.benchmarks._200_check;
762 -
763  public class Sub extends Super{
764  
765  ///////////////////////////////////////
766 diff -u check1/Super.java check/Super.java
767 --- check1/Super.java   Wed Jun 17 22:14:15 1998
768 +++ check/Super.java    Fri Oct 25 16:13:01 2002
769 @@ -9,8 +9,6 @@
770   * This source code is provided as is, without any express or implied warranty.
771   */
772  
773 -package spec.benchmarks._200_check;
774 -
775  public class Super{
776  
777  ///////////////////////////////////////