Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Execpetion with JAVA 21 (LTS) in MVEL Module #420

Open
stefanbrrr0310 opened this issue Feb 7, 2024 · 3 comments
Open

Runtime Execpetion with JAVA 21 (LTS) in MVEL Module #420

stefanbrrr0310 opened this issue Feb 7, 2024 · 3 comments

Comments

@stefanbrrr0310
Copy link

Hi There,

i just tried to move my project, which uses the MVEL module from Java 11 to java 21. Unfortunately i get a runtime Exception during Execution, as the Class "java.lang.Compiler", which is used during the creation of a MVELRule Condition, is not availavle in java 21. This happens in the used MVEL library. Maybe an Update of the MVEL Version solves this issue?

@hisener
Copy link

hisener commented Feb 9, 2024

I think upgrading mvel2 to 2.5.0+ should resolve this issue as it drops java.lang.Compiler reference in mvel/mvel@2eba49d.

@RSapru
Copy link

RSapru commented Mar 21, 2024

@stefanbrrr0310 Just wondering, if it worked for you, When I tried upgrading mvel2 version to 2.5.2.Final did not work ?

@jpoisat831
Copy link

Hi, thanks for commenting this issue!
I added the following block to my POM and got rid of my compilation problem, thanks to you guys!

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>org.mvel</groupId>
			<artifactId>mvel2</artifactId>
			<version>2.5.2.Final</version>
		</dependency>
	</dependencies>
</dependencyManagement>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants