[jdk17] Fix ThisParamter test

This commit is contained in:
Rawi01 committed 2021-08-18 17:37:54 +02:00
1 parent df2601f9db
commit 7bea429ea7
2 files changed
+7 -7

No files matched your search

@@ -1,4 +1,4 @@
// version 9: the 'this' param option exists in java8, but is bugged, in that annotations are not allowed on them, even without a @Target. The only purpose of the this param is annotations, so, boy, isn't that a punch in the face?
// version 8:
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -22,19 +22,19 @@ class ThisParameter {
// no content
}
@Target(ElementType.PARAMETER)
@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.SOURCE)
@interface SourceTagged {
String value();
}
@Target(ElementType.PARAMETER)
@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.CLASS)
@interface ClassTagged {
String value();
}
@Target(ElementType.PARAMETER)
@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.RUNTIME)
@interface RuntimeTagged {
String value();