horacehylee commented on a change in pull request #16821: URL: https://github.com/apache/flink/pull/16821#discussion_r725431848
########## File path: flink-core/src/main/java/org/apache/flink/configuration/CoreOptions.java ########## @@ -94,24 +101,39 @@ * </ul> */ @Documentation.Section(Documentation.Sections.EXPERT_CLASS_LOADING) - public static final ConfigOption<String> ALWAYS_PARENT_FIRST_LOADER_PATTERNS = + public static final ConfigOption<List<String>> ALWAYS_PARENT_FIRST_LOADER_PATTERNS = ConfigOptions.key("classloader.parent-first-patterns.default") - .defaultValue( - "java.;scala.;org.apache.flink.;com.esotericsoftware.kryo;org.apache.hadoop.;javax.annotation.;org.xml;javax.xml;org.apache.xerces;org.w3c;" - + PARENT_FIRST_LOGGING_PATTERNS) + .stringType() + .asList() + .defaultValues( + mergeListsToArray( + Arrays.asList( + "java.", + "scala.", + "org.apache.flink.", + "com.esotericsoftware.kryo", + "org.apache.hadoop.", + "javax.annotation.", + "org.xml", + "javax.xml", + "org.apache.xerces", + "org.w3c"), + PARENT_FIRST_LOGGING_PATTERNS)) .withDeprecatedKeys("classloader.parent-first-patterns") .withDescription( - "A (semicolon-separated) list of patterns that specifies which classes should always be" + "A list of patterns that specifies which classes should always be" + " resolved through the parent ClassLoader first. A pattern is a simple prefix that is checked against" + " the fully qualified class name. This setting should generally not be modified. To add another pattern we" + " recommend to use \"classloader.parent-first-patterns.additional\" instead."); @Documentation.Section(Documentation.Sections.EXPERT_CLASS_LOADING) - public static final ConfigOption<String> ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL = + public static final ConfigOption<List<String>> ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL = ConfigOptions.key("classloader.parent-first-patterns.additional") - .defaultValue("") + .stringType() + .asList() + .noDefaultValue() Review comment: Good catch. Updated -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org