vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 534 forks source link

MVEL is broken with Java 21 #2484

Closed jan-zajic closed 1 year ago

jan-zajic commented 1 year ago

The new LTS release of Java 21 broke vertx-web-templ-mvel, more specifically the MVEL library. Updating MVEL to the version at least 2.5.0.Final fixes this issue.

Version

4.4.5

Context

java.lang.NoClassDefFoundError: java/lang/Compiler at org.mvel2.compiler.AbstractParser.setupParser(AbstractParser.java:215) at org.mvel2.compiler.AbstractParser.(AbstractParser.java:153) at org.mvel2.MVEL.compileExpression(MVEL.java:831)

Steps to reproduce

  1. Use JDK 21
  2. Use vertx-web-templ-mvel
  3. Run some template
tsegismont commented 1 year ago

Thanks for reporting this. Would you like to contribute the upgrade?

jan-zajic commented 1 year ago

OK, I can do that, I've created PR #2485.