TestEarlyGC.java: Added comment explaining bytecode.
authorTom Tromey <tromey@redhat.com>
Tue, 28 Jan 2003 23:21:13 +0000 (23:21 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 28 Jan 2003 23:21:13 +0000 (23:21 +0000)
* libjava.loader/TestEarlyGC.java: Added comment explaining
bytecode.

From-SVN: r62047

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.loader/TestEarlyGC.java

index e9ee5333883d0f5610a167ede930eb8f2d3f3866..23293eaf064bd9960e3421d3f01c79b8607b8d58 100644 (file)
@@ -1,5 +1,8 @@
 2003-01-28  Tom Tromey  <tromey@redhat.com>
 
+       * libjava.loader/TestEarlyGC.java: Added comment explaining
+       bytecode.
+
        * libjava.jacks/jacks.xfail: More lexer tests now pass.
 
 2003-01-27  Tom Tromey  <tromey@redhat.com>
index 7381b50705ca1962284dd0023359ee329e54357b..f3bfa0946ae5bccca096bb19c850b75a2ecd1499 100644 (file)
@@ -2,6 +2,18 @@ public class TestEarlyGC extends ClassLoader {
 
   static TestEarlyGC[] a = new TestEarlyGC[10];
 
+  // Jeff Sturm writes:
+  // Reconstructed from bytecode (and memory).  The singleton pattern
+  // is used as a class finalizer.
+  // public class C {
+  //   private static C c;
+  //   public C() {
+  //     c = this;
+  //   }
+  //   protected void finalize() {
+  //     System.out.println("finalized");
+  //   }
+  // }
   byte[] code = {
     -54,-2,-70,-66,0,3,0,45,0,32,1,0,1,67,7,0,
     1,1,0,16,106,97,118,97,47,108,97,110,103,47,79,98,