8382841: Revert annotation parsing changes from libgraal

Reviewed-by: liach, darcy
This commit is contained in:
April Ivy 2026-07-10 21:48:11 +00:00 committed by Chen Liang
parent c0a3082cf1
commit d3e5304c0f

View File

@ -77,14 +77,14 @@ public class AnnotationParser {
* Like {@link #parseAnnotations(byte[], sun.reflect.ConstantPool, Class)}
* with an additional parameter {@code selectAnnotationClasses} which selects the
* annotation types to parse (other than selected are quickly skipped).<p>
* This method is used to parse select meta annotations in the construction
* This method is only used to parse select meta annotations in the construction
* phase of {@link AnnotationType} instances to prevent infinite recursion.
*
* @param selectAnnotationClasses an array of annotation types to select when parsing
*/
@SafeVarargs
@SuppressWarnings("varargs") // selectAnnotationClasses is used safely
public static Map<Class<? extends Annotation>, Annotation> parseSelectAnnotations(
static Map<Class<? extends Annotation>, Annotation> parseSelectAnnotations(
byte[] rawAnnotations,
ConstantPool constPool,
Class<?> container,