Reputation: 11
Does Spring Statemachine support Java 17 or above?
Their documentation says that the supported version is Java 8. However, the library dependency does seem to compile in a Java 17 environment.
I am new to this library and haven't used a lot of its features.
Therefore I may be wrong. Would you mind sharing your experience here?
Upvotes: -1
Views: 519
Reputation: 1464
package fail on :
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@OnTransition
public @interface StatesOnTransition {
States[] source() default {};
States[] target() default {};
}
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 66 at org.springframework.asm.ClassReader.(ClassReader.java:199)
with :
<properties>
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.statemachine</groupId>
<artifactId>spring-statemachine-starter</artifactId>
<version>4.0.0</version>
</dependency>
Oh yeah it doesnt, thanks for your answers
Upvotes: 0
Reputation: 896
In my company, we are using java 17 with SSM 3.x. In other words, yes
Upvotes: 0