Closed yk-littlepay closed 6 days ago
@dmlloyd could you have a look at this one? It's a regression in 3.13.
/cc @geoand (testing)
Another side effect of #40601.
https://github.com/jboss-remoting/jboss-marshalling/pull/147 fixes the problem, but I am really not sure it's the proper fix, so we'll have to wait until @dmlloyd is back :)
Describe the bug
This is kind of this #40148 , #42006 and#42098. When a @ParameterizedTest contains a record as a parameter that has an enum property the error is thrown like this
[ERROR] GreetingResourceTest.should_postUsers(UserRequest)[1] » IllegalState Error calling onstructor on record class class org.acme.model.UserRequest
if remove enum then it starts to work.PS. But the same test works fine with Serializable as expected in 3.12.3
Expected behavior
Each @ParameterizedTest must accept a
record
containing a property ofEnum<E extends Enum<E>>
typeActual behavior
Each @ParameterizedTest is failed if a parameter is a record that contains enum property
How to Reproduce?
Create any
@ParameterizedTest
with@MethodSource("requestSamples")
where the methodrequestSamples
provides aStream<SomeRecord>
andSomeRecord
looks likehere is some project example code-with-quarkus.zip
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response