This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New testcase


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]