Closed bdeneuter closed 2 weeks ago
A lot of our test classes have a single super class which contains the @ShouldNotPin annotation. The class VirtualThreadExtension does not take super classes into account when determing if recording is needed: https://github.com/quarkusio/quarkus/blob/main/independent-projects/junit5-virtual-threads/src/main/java/io/quarkus/test/junit5/virtual/internal/VirtualThreadExtension.java#L65
@ShouldNotPin
When a super class declares the @ShouldNotPin annotation that the extension validates that no pinning occurs.
The @ShouldNotPin annotation is ignored
No response
uname -a
ver
java -version
mvnw --version
gradlew --version
/cc @cescoffier (virtual-threads), @ozangunalp (virtual-threads)
Fancy a PR as you found the place where we need to check for the super class?
Yes, of course. When I find the time I will create the PR
Describe the bug
A lot of our test classes have a single super class which contains the
@ShouldNotPin
annotation. The class VirtualThreadExtension does not take super classes into account when determing if recording is needed: https://github.com/quarkusio/quarkus/blob/main/independent-projects/junit5-virtual-threads/src/main/java/io/quarkus/test/junit5/virtual/internal/VirtualThreadExtension.java#L65Expected behavior
When a super class declares the
@ShouldNotPin
annotation that the extension validates that no pinning occurs.Actual behavior
The
@ShouldNotPin
annotation is ignoredHow to Reproduce?
No response
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