vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
588 stars 164 forks source link

in 24.4 + java21 some demos do not run #19589

Closed manolo closed 1 week ago

manolo commented 1 week ago

Description of the bug

This error is seen when running an app in java21, but it works in java17

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:199)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:180)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:166)
    at org.objectweb.asm.ClassReader.<init> (ClassReader.java:287)
    at org.eclipse.jetty.annotations.AnnotationParser.scanClass (AnnotationParser.java:896)

Expected behavior

it works

Minimal reproducible example

java -version (check that it is 21)
git clone git@github.com:vaadin/bookstore-example.git
cd bookstore-example
mvn

Versions

manolo commented 1 week ago

Seems a problem with the jetty maven plugin upgrading it from 11.0.13 to 11.0.15 it fixes