Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4F5611147 for ; Fri, 16 May 2014 22:38:52 +0000 (UTC) Received: (qmail 76124 invoked by uid 500); 16 May 2014 11:37:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 23407 invoked by uid 500); 16 May 2014 11:27:12 -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 45901 invoked by uid 99); 16 May 2014 11:14:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 11:14:37 +0000 Date: Fri, 16 May 2014 11:14:37 +0000 (UTC) From: "Alexandre Chatiron (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SANDBOX-476) [asm] IllegalStateException: "Undefined label used" with ASM > 4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SANDBOX-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexandre Chatiron updated SANDBOX-476: --------------------------------------- Attachment: javaflow-asm5.02.patch Ok I fix it, all tests are green with ASM 5.0.2 > [asm] IllegalStateException: "Undefined label used" with ASM > 4.1 > ------------------------------------------------------------------ > > Key: SANDBOX-476 > URL: https://issues.apache.org/jira/browse/SANDBOX-476 > Project: Commons Sandbox > Issue Type: Bug > Components: Javaflow > Affects Versions: Nightly Builds > Reporter: Alexandre Chatiron > Labels: asm, label > Attachments: BytecodeClassLoader.java, ContinuationClassAdapter.java, ContinuationMethodAdapter.java, ContinuationMethodAnalyzer.java, javaflow-asm5.02.patch, pom.xml > > > I want to upgrade Commons Javaflow from ASM 4 to 5 (same problem with 4.1 ) and I get this exception: > {code} > java.lang.IllegalStateException: Undefined label used > at org.objectweb.asm.util.CheckMethodAdapter.visitMaxs(Unknown Source) > at > org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAdapter.visitMaxs(ContinuationMethodAdapter.java:313) > at org.objectweb.asm.tree.MethodNode.accept(Unknown Source) > at > org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer.visitEnd(ContinuationMethodAnalyzer.java:140) > {code} > the code triggering this error is: > {code:java} > public void visitMaxs(int maxStack, int maxLocals) { > Label endLabel = new Label(); > mv.visitLabel(endLabel); > mv.visitLocalVariable("__stackRecorder", "L" + STACK_RECORDER + ";", null, startLabel, endLabel, stackRecorderVar); > mv.visitMaxs(0, 0); > } > {code} > Any idea how to fix that? -- This message was sent by Atlassian JIRA (v6.2#6252)