minfrin commented on a change in pull request #382:
URL: https://github.com/apache/tomcat/pull/382#discussion_r532265195



##########
File path: java/org/apache/tomcat/util/IntrospectionUtils.java
##########
@@ -136,6 +138,19 @@ public static boolean setProperty(Object o, String name, 
String value,
                         if (actualMethod != null) {
                             
actualMethod.append(method.getName()).append("(InetAddress.getByName(\"").append(value).append("\"))");
                         }
+                        // Try a setFoo ( Path )
+                    } else if ("java.nio.file.Path".equals(paramType
+                            .getName())) {
+                        try {
+                            params[0] = Paths.get(value);
+                        } catch (InvalidPathException ipe) {
+                            if (log.isDebugEnabled())
+                                log.debug("IntrospectionUtils: Unable to 
resolve path:" + value);

Review comment:
       Not following, [..] ?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to