changeset 58679:68adc4dcc465 records

removing throws SecurityException from getRecordComponents
author vromero
date Wed, 06 Nov 2019 14:48:35 -0500
parents e98647754181
children 48dc4292588c
files src/java.base/share/classes/java/lang/Class.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Class.java	Wed Nov 06 13:44:58 2019 +0000
+++ b/src/java.base/share/classes/java/lang/Class.java	Wed Nov 06 14:48:35 2019 -0500
@@ -2312,7 +2312,7 @@
                                  essentialAPI=false)
     @SuppressWarnings("preview")
     @CallerSensitive
-    public RecordComponent[] getRecordComponents() throws SecurityException {
+    public RecordComponent[] getRecordComponents() {
         SecurityManager sm = System.getSecurityManager();
         if (sm != null) {
             checkMemberAccess(sm, Member.DECLARED, Reflection.getCallerClass(), true);