New testcase

Andrew Haley aph-gcc@littlepinkcloud.COM
Wed Aug 29 16:21:00 GMT 2007


Sanity check for VMStackWalker.getCallingClass().

Andrew.


2007-08-29  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/WalkerTest.out: New file.
        * testsuite/libjava.lang/WalkerTest.java: New file.

Index: WalkerTest.java
===================================================================
--- WalkerTest.java     (revision 0)
+++ WalkerTest.java     (revision 0)
@@ -0,0 +1,15 @@
+class Foo
+{
+  Class bar()
+  {
+    return gnu.classpath.VMStackWalker.getCallingClass();
+  }
+}
+
+public class WalkerTest
+{
+  public static void main(String[] argv)
+  {
+    System.out.println(new Foo().bar());
+  }
+}
Index: WalkerTest.out
===================================================================
--- WalkerTest.out      (revision 0)
+++ WalkerTest.out      (revision 0)
@@ -0,0 +1 @@
+class WalkerTest



More information about the Java-patches mailing list