mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-17 06:29:22 +00:00
8382841: Revert annotation parsing changes from libgraal
Reviewed-by: liach, darcy
This commit is contained in:
parent
c0a3082cf1
commit
d3e5304c0f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user