-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/kotlinkind/bugSomething isn't workingSomething isn't workingtriage/invalidThis doesn't seem rightThis doesn't seem right
Description
Describe the bug
Unable to use repeatable @QuarkusTestResource in kotlin.
Consider the following example:
@QuarkusTestResource(ResourceOne::class)
@QuarkusTestResource(ResourceTwo::class)
class Test {
...
}does not work, giving the following error: Repeatable annotations with non-SOURCE retention are not yet supported.
This was already reported on #5252 and fixed as part of PR #5473
I think this is solvable by changing Retention to @Retention(AnnotationRetention.SOURCE) rather than @Retention(RetentionPolicy.RUNTIME).
Expected behavior
Should be allowed to use repeatable @QuarkusTestResource annotations and test should be compile.
Actual behavior
Fails to compile the tests.
bnjns, trickyBytes, cargopete, damianofontana85, jcjolley and 1 more
Metadata
Metadata
Assignees
Labels
area/kotlinkind/bugSomething isn't workingSomething isn't workingtriage/invalidThis doesn't seem rightThis doesn't seem right