in asm-util/src/main/java/org/objectweb/asm/util/CheckAnnotationAdapter.java [60:87]
public void visit(final String name, final Object value) {
checkVisitEndNotCalled();
checkName(name);
if (!(value instanceof Byte
|| value instanceof Boolean
|| value instanceof Character
|| value instanceof Short
|| value instanceof Integer
|| value instanceof Long
|| value instanceof Float
|| value instanceof Double
|| value instanceof String
|| value instanceof Type
|| value instanceof byte[]
|| value instanceof boolean[]
|| value instanceof char[]
|| value instanceof short[]
|| value instanceof int[]
|| value instanceof long[]
|| value instanceof float[]
|| value instanceof double[])) {
throw new IllegalArgumentException("Invalid annotation value");
}
if (value instanceof Type && ((Type) value).getSort() == Type.METHOD) {
throw new IllegalArgumentException("Invalid annotation value");
}
super.visit(name, value);
}