Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com> --- regression/jvm/MethodInvocationExceptionsTest.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/regression/jvm/MethodInvocationExceptionsTest.java b/regression/jvm/MethodInvocationExceptionsTest.java index 6d49d0b..7b7f836 100644 --- a/regression/jvm/MethodInvocationExceptionsTest.java +++ b/regression/jvm/MethodInvocationExceptionsTest.java @@ -35,9 +35,13 @@ public class MethodInvocationExceptionsTest extends TestCase { public void publicMethod() { } + private static MethodInvocationExceptionsTest getNullMethodInvocationExceptionsTest() { + return null; + } + public static void testInvokespecialThrowsNullPointerException() { boolean caught = false; - MethodInvocationExceptionsTest test = null; + MethodInvocationExceptionsTest test = getNullMethodInvocationExceptionsTest(); try { test.privateMethod(); @@ -50,7 +54,7 @@ public class MethodInvocationExceptionsTest extends TestCase { public static void testInvokevirtualThrowsNullPointerException() { boolean caught = false; - MethodInvocationExceptionsTest test = null; + MethodInvocationExceptionsTest test = getNullMethodInvocationExceptionsTest(); try { test.publicMethod(); -- 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