From 05d469cc5a2034b0eeed80cbd986f97e3112f637 Mon Sep 17 00:00:00 2001 From: jscattergood Date: Thu, 24 Mar 2016 16:00:23 -0700 Subject: [PATCH] Fix for https://github.com/mikebrock/mvel/issues/27 #84 --- .../org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java b/src/main/java/org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java index 1887c0baa..3033ecb46 100644 --- a/src/main/java/org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java +++ b/src/main/java/org/mvel2/optimizers/impl/asm/ASMAccessorOptimizer.java @@ -85,7 +85,7 @@ public class ASMAccessorOptimizer extends AbstractOptimizer implements AccessorO OPCODES_VERSION = Opcodes.V1_4; else if (javaVersion.startsWith("1.5")) OPCODES_VERSION = Opcodes.V1_5; - else if (javaVersion.startsWith("1.6") || javaVersion.startsWith("1.7")) + else if (javaVersion.startsWith("1.6") || javaVersion.startsWith("1.7") || javaVersion.startsWith("1.8")) OPCODES_VERSION = Opcodes.V1_6; else OPCODES_VERSION = Opcodes.V1_2;