+2008-08-07 Andrew Haley <aph@redhat.com>
+
+ * testsuite/libjava.lang/StackTrace2.java: Rewrite to prevent
+ spurious failure when some methods are inlined.
+
2008-08-05 Matthias Klose <doko@ubuntu.com>
* HACKING: Update instructions how to build gcj/javaprims.h.
{
try
{
- a();
+ new StackTrace2().a();
}
catch (Exception x)
{
}
}
- static void a()
+ void a()
{
- new Inner();
+ new Inner().foo();
}
- static class Inner
+ class Inner
{
- public Inner()
+ public void foo()
{
doCrash(null);
}
{
System.out.println("Trace length = " + trace.length);
checkLine(trace[0], "StackTrace2$Inner", "doCrash", 33);
- checkLine(trace[1], "StackTrace2$Inner", "<init>", 28);
+ checkLine(trace[1], "StackTrace2$Inner", "foo", 28);
checkLine(trace[2], "StackTrace2", "a", 21);
checkLine(trace[3], "StackTrace2", "main", 10);
}