Open rady66 opened 6 years ago
Does perhaps this code section need an update for Java 10/11?
final String javaVersion = PropertyTools.getJavaVersion();
if (javaVersion.startsWith("1.4")) {
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")
|| javaVersion.startsWith("1.8")
|| javaVersion.startsWith("9")) {
OPCODES_VERSION = Opcodes.V1_6;
} else {
OPCODES_VERSION = Opcodes.V1_2;
}
yes, exactly. I tested a similar to that change and it works fine on Java 10 (except for a few unit test failing during the build): https://github.com/mvel/mvel/commit/2134f0cb3c8f9c23d5b2f1ade2b4c7975f318013#diff-13015e8c0d4e0fe95f6368f7618c1a58
can you please provide some input on how to try the patched build? I believe I'm facing the same issue
I've managed to get MVEL working on Java 10 by using a dependency from jitpack.io.
This is what needs to be added to your Maven POM.
I would appreciate an official release published to Maven Central.
Is this fixed in 2.4.8? Using the jitpack snapshot for now but looking for the possibility of upgrading.
Mvel is throwing exceptions with Java 10