Skip to content

Commit 58750ee

Browse files
committed
refactor: replace deprecated AccessControlException with SecurityException
- Update code to use `SecurityException` instead of the deprecated `AccessControlException`.
1 parent fdfc89c commit 58750ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/utils/AbstractRecursiveAnnotationVisitor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.util.ReflectionUtils;
2727

2828
import java.lang.reflect.Field;
29-
import java.security.AccessControlException;
3029

3130
/**
3231
* {@link AnnotationVisitor} to recursively visit annotations.
@@ -98,7 +97,7 @@ protected Object getEnumValue(String asmTypeDescriptor, String attributeValue) {
9897
catch (ClassNotFoundException | NoClassDefFoundError ex) {
9998
logger.debug("Failed to classload enum type while reading annotation metadata", ex);
10099
}
101-
catch (IllegalAccessException | AccessControlException ex) {
100+
catch (IllegalAccessException | SecurityException ex) {
102101
logger.debug("Could not access enum value while reading annotation metadata", ex);
103102
}
104103
return valueToUse;

0 commit comments

Comments
 (0)