8276609: Document setting property jdk.serialFilter to an invalid value throws ExceptionInInitializerError

Reviewed-by: dfuchs, lancea
This commit is contained in:
Roger Riggs 2021-11-16 20:53:49 +00:00
parent cddc6ce446
commit 8ed384cfb6

View file

@ -523,6 +523,8 @@ public interface ObjectInputFilter {
* {@systemProperty jdk.serialFilter}, its value is used to configure the filter.
* If the system property is not defined, and the {@link java.security.Security} property
* {@code jdk.serialFilter} is defined then it is used to configure the filter.
* The filter is created as if {@link #createFilter(String) createFilter} is called;
* if the filter string is invalid, an {@link ExceptionInInitializerError} is thrown.
* Otherwise, the filter is not configured during initialization and
* can be set with {@link #setSerialFilter(ObjectInputFilter) Config.setSerialFilter}.
* Setting the {@code jdk.serialFilter} with {@link System#setProperty(String, String)