Skip to content

Commit b91c7f6

Browse files
committed
CpsFlowExecution: import groovyjarjarasm.asm.MethodTooLargeException to avoid catching by full name
Signed-off-by: Jim Klimov <[email protected]>
1 parent 93d4621 commit b91c7f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import com.thoughtworks.xstream.io.HierarchicalStreamReader;
4545
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
4646
import com.thoughtworks.xstream.mapper.Mapper;
47+
import groovyjarjarasm.asm.MethodTooLargeException;
4748
import groovy.lang.GroovyShell;
4849
import hudson.ExtensionList;
4950
import hudson.model.Action;
@@ -638,7 +639,7 @@ private CpsScript parseScript() throws IOException {
638639
for (Entry<String, String> e : loadedScripts.entrySet()) {
639640
shell.reparse(e.getKey(), e.getValue());
640641
}
641-
} catch (groovyjarjarasm.asm.MethodTooLargeException x) {
642+
} catch (MethodTooLargeException x) {
642643
LOGGER.log(Level.SEVERE, "FAILED to parse WorkflowScript (the pipeline script) due to MethodTooLargeException: " + x.toString());
643644
closeShells();
644645
throw x;

0 commit comments

Comments
 (0)