Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 56434 invoked from network); 1 Feb 2009 23:42:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2009 23:42:22 -0000 Received: (qmail 75566 invoked by uid 500); 1 Feb 2009 23:42:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 75494 invoked by uid 500); 1 Feb 2009 23:42:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 75483 invoked by uid 99); 1 Feb 2009 23:42:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 15:42:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 23:42:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D5428234C4C0 for ; Sun, 1 Feb 2009 15:41:59 -0800 (PST) Message-ID: <987448056.1233531719872.JavaMail.jira@brutus> Date: Sun, 1 Feb 2009 15:41:59 -0800 (PST) From: "Fernando Petrola (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (SANDBOX-277) [javaflow] Uninitialized local variable related bug In-Reply-To: <313740613.1233530762098.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SANDBOX-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Petrola updated SANDBOX-277: ------------------------------------- Description: Executing this test class: ------------------------------------------------------------------------------------------------------------------------------------------------ package test; import java.net.URL; import org.apache.commons.javaflow.Continuation; import org.apache.commons.javaflow.ContinuationClassLoader; public class TestNullBug { public static class Test implements Runnable { public class NullLocalVariable { public void method1() { Integer result= null; if (result != 0) result= 1; } } public void run() { NullLocalVariable bug1= new NullLocalVariable(); } } public static void main(String[] args) throws Exception { ContinuationClassLoader classLoader= new ContinuationClassLoader(new URL[] {}, TestNullBug.Test.class.getClassLoader()); classLoader.addLoaderPackageRoot(TestNullBug.Test.class.getPackage().getName()); Runnable test= (Runnable) classLoader.loadClass(TestNullBug.Test.class.getName()).newInstance(); Continuation.startWith(test); } } ------------------------------------------------------------------------------------------------------------------------------------------------ I get the following stacktrace: Exception in thread "main" java.lang.NoClassDefFoundError: null at test.TestNullBug$Test.run(TestNullBug.java:23) at org.apache.commons.javaflow.bytecode.StackRecorder.execute(StackRecorder.java:104) at org.apache.commons.javaflow.Continuation.continueWith(Continuation.java:182) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:136) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:107) at test.TestNullBug.main(TestNullBug.java:32) Caused by: java.lang.ClassNotFoundException: null at org.apache.commons.javaflow.ContinuationClassLoader.findClass(ContinuationClassLoader.java:419) at org.apache.commons.javaflow.ContinuationClassLoader.loadClass(ContinuationClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 6 more was: Executing this test class: ------------------------------------------------------------------------------------------------------------------------------------------------ package net.ar.mondes.flowee.continuation.test; import java.net.URL; import org.apache.commons.javaflow.Continuation; import org.apache.commons.javaflow.ContinuationClassLoader; public class TestNullBug { public static class Test implements Runnable { public class NullLocalVariable { public void method1() { Integer result= null; if (result != 0) result= 1; } } public void run() { NullLocalVariable bug1= new NullLocalVariable(); } } public static void main(String[] args) throws Exception { ContinuationClassLoader classLoader= new ContinuationClassLoader(new URL[] {}, TestNullBug.Test.class.getClassLoader()); classLoader.addLoaderPackageRoot(TestNullBug.Test.class.getPackage().getName()); Runnable test= (Runnable) classLoader.loadClass(TestNullBug.Test.class.getName()).newInstance(); Continuation.startWith(test); } } ------------------------------------------------------------------------------------------------------------------------------------------------ I get the following stacktrace: Exception in thread "main" java.lang.NoClassDefFoundError: null at test.TestNullBug$Test.run(TestNullBug.java:28) at org.apache.commons.javaflow.bytecode.StackRecorder.execute(StackRecorder.java:104) at org.apache.commons.javaflow.Continuation.continueWith(Continuation.java:182) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:136) at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:107) at test.TestNullBug.main(TestNullBug.java:37) Caused by: java.lang.ClassNotFoundException: null at org.apache.commons.javaflow.ContinuationClassLoader.findClass(ContinuationClassLoader.java:419) at org.apache.commons.javaflow.ContinuationClassLoader.loadClass(ContinuationClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 6 more > [javaflow] Uninitialized local variable related bug > --------------------------------------------------- > > Key: SANDBOX-277 > URL: https://issues.apache.org/jira/browse/SANDBOX-277 > Project: Commons Sandbox > Issue Type: Bug > Components: Javaflow > Reporter: Fernando Petrola > Priority: Critical > > Executing this test class: > ------------------------------------------------------------------------------------------------------------------------------------------------ > package test; > import java.net.URL; > import org.apache.commons.javaflow.Continuation; > import org.apache.commons.javaflow.ContinuationClassLoader; > public class TestNullBug > { > public static class Test implements Runnable > { > public class NullLocalVariable > { > public void method1() > { > Integer result= null; > if (result != 0) > result= 1; > } > } > public void run() > { > NullLocalVariable bug1= new NullLocalVariable(); > } > } > public static void main(String[] args) throws Exception > { > ContinuationClassLoader classLoader= new ContinuationClassLoader(new URL[] {}, TestNullBug.Test.class.getClassLoader()); > classLoader.addLoaderPackageRoot(TestNullBug.Test.class.getPackage().getName()); > Runnable test= (Runnable) classLoader.loadClass(TestNullBug.Test.class.getName()).newInstance(); > Continuation.startWith(test); > } > } > ------------------------------------------------------------------------------------------------------------------------------------------------ > I get the following stacktrace: > Exception in thread "main" java.lang.NoClassDefFoundError: null > at test.TestNullBug$Test.run(TestNullBug.java:23) > at org.apache.commons.javaflow.bytecode.StackRecorder.execute(StackRecorder.java:104) > at org.apache.commons.javaflow.Continuation.continueWith(Continuation.java:182) > at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:136) > at org.apache.commons.javaflow.Continuation.startWith(Continuation.java:107) > at test.TestNullBug.main(TestNullBug.java:32) > Caused by: java.lang.ClassNotFoundException: null > at org.apache.commons.javaflow.ContinuationClassLoader.findClass(ContinuationClassLoader.java:419) > at org.apache.commons.javaflow.ContinuationClassLoader.loadClass(ContinuationClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:268) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) > ... 6 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.