< prev index next >

src/java.base/share/classes/sun/reflect/annotation/AnnotationType.java

Print this page

        

*** 131,140 **** --- 131,142 ---- Object defaultValue = method.getDefaultValue(); if (defaultValue != null) { memberDefaults.put(name, defaultValue); } + } else { + throw new IllegalArgumentException(method + " has invalid modifier"); } } // Initialize retention, & inherited fields. Special treatment // of the corresponding annotation types breaks infinite recursion.
< prev index next >