michael-o commented on a change in pull request #382: URL: https://github.com/apache/tomcat/pull/382#discussion_r532265524
########## 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: All log statements in Tomcat guard placeholders with `[]`, e.g., `"Did not find file [foo.xml]"`. ---------------------------------------------------------------- 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