Skip to content

Commit 9374213

Browse files
committed
svm: no longer need to substitute TypeVariableImpl on JDK latest [JDK-8345565]
1 parent 6e74028 commit 9374213

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub/SunReflectTypeSubstitutions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
import com.oracle.svm.core.annotate.Alias;
3030
import com.oracle.svm.core.annotate.Substitute;
3131
import com.oracle.svm.core.annotate.TargetClass;
32+
import com.oracle.svm.core.jdk.JDK21OrEarlier;
3233

33-
@TargetClass(sun.reflect.generics.reflectiveObjects.TypeVariableImpl.class)
34+
@TargetClass(value = sun.reflect.generics.reflectiveObjects.TypeVariableImpl.class, onlyWith = JDK21OrEarlier.class)
3435
final class Target_sun_reflect_generics_reflectiveObjects_TypeVariableImpl {
3536

3637
@Alias GenericDeclaration genericDeclaration;

0 commit comments

Comments
 (0)