ctubbsii commented on code in PR #3678:
URL: https://github.com/apache/accumulo/pull/3678#discussion_r1285003777


##########
server/base/src/main/java/org/apache/accumulo/server/util/PropUtil.java:
##########
@@ -65,6 +65,19 @@ protected static void validateProperties(final ServerContext 
context,
         }
         throw new IllegalArgumentException(exceptionMessage + propStoreKey + " 
name: "
             + prop.getKey() + ", value: " + prop.getValue());
+      } else if 
(prop.getKey().equals(Property.TABLE_CLASSLOADER_CONTEXT.getKey())) {
+        ClassLoader cl;
+        try {
+          // If the context cannot be resolved, then this call should throw an 
error
+          cl = ClassLoaderUtil.getClassLoader(prop.getValue());
+        } catch (RuntimeException re) {

Review Comment:
   I think you're looking for:
   
   ```suggestion
           } catch (ReflectiveOperationException re) {
   ```
   
   Or maybe:
   
   ```suggestion
           } catch (ReflectiveOperationException | NullPointerException re) {
   ```
   
   Other RTEs could be entirely unrelated.
   nit: Also, can we just stick with `e` as the exception name?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to