From 3454af49e2c5bfad57d6241c6d43776dd7f5d34c Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 14 Aug 2024 20:31:37 +0200 Subject: [PATCH] Reinstate string array handling. --- .../net/bytebuddy/description/annotation/AnnotationValue.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/description/annotation/AnnotationValue.java b/byte-buddy-dep/src/main/java/net/bytebuddy/description/annotation/AnnotationValue.java index 2d2ee540b2..b7e37fc833 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/description/annotation/AnnotationValue.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/description/annotation/AnnotationValue.java @@ -1108,6 +1108,8 @@ public static AnnotationValue of(String... value) { return of((float[]) value); } else if (value instanceof double[]) { return of((double[]) value); + } else if (value instanceof String[]) { + return of((String[]) value); } else { throw new IllegalArgumentException("Not a constant annotation value: " + value); }