-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Regression in 3.13.0.CR1: Lambda expression from custom serializable interface used as @QuarkusTest
method parameter fails with ClassNotFoundException
#42006
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
Comments
/cc @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda) |
Btw, I'd prefer not having to add |
You should be able to pass the argument as non-serializable now, and it should work. A more comprehensive solution (i.e. not serializing anymore) is being worked on in the meantime. |
That's very valuable info, thanks! Could be something for the migration guide, no? I'm a bit puzzled now why I didn't see that when starting the reproducer because I was first missing But I do confirm that removing
|
FWIW, this is still the case in 3.14.2 which contains #42916. |
Describe the bug
Up until 3.12.3 you can create a lambda expression from something like:
and pass it over to a
@QuarkusTest
method as a parameter, e.g.:but with 3.13.0.CR1 you'll get:
Expected behavior
Cloning works for lambdas created from custom serializable interfaces.
Actual behavior
Exception is thrown.
How to Reproduce?
q_test-lambda.zip
./mvnw clean test
fails./mvnw clean test -Dquarkus.platform.version=3.12.3
passesNote that the reproducer also includes a working lambda example for both versions (using a subclass of
java.util.function.Supplier<T>
).Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.13.0.CR1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
I suppose this is related to #40906, /cc @holly-cummins
Workaround: Use anonymous class instead.
The text was updated successfully, but these errors were encountered: