Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com> --- regression/jvm/ExceptionsTest.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/regression/jvm/ExceptionsTest.java b/regression/jvm/ExceptionsTest.java index 837ff83..1330281 100644 --- a/regression/jvm/ExceptionsTest.java +++ b/regression/jvm/ExceptionsTest.java @@ -122,9 +122,13 @@ public class ExceptionsTest extends TestCase { } catch (Exception e) {} } + private static Exception getNullException() { + return null; + } + public static void testAthrow() { boolean caught = false; - Exception exception = null; + Exception exception = getNullException(); try { throw exception; @@ -143,13 +147,13 @@ public class ExceptionsTest extends TestCase { assertEquals(3, e.length); - assertEquals(140, e[0].getLineNumber()); + assertEquals(144, e[0].getLineNumber()); assertObjectEquals("ExceptionsTest.java", e[0].getFileName()); assertObjectEquals("jvm.ExceptionsTest", e[0].getClassName()); assertObjectEquals("testGetStackTrace", e[0].getMethodName()); assertFalse(e[0].isNativeMethod()); - assertEquals(160, e[1].getLineNumber()); + assertEquals(164, e[1].getLineNumber()); assertObjectEquals("ExceptionsTest.java", e[1].getFileName()); assertObjectEquals("jvm.ExceptionsTest", e[1].getClassName()); assertObjectEquals("testStackTrace", e[1].getMethodName()); -- 1.6.0.4 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel