mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8276609: Document setting property jdk.serialFilter
to an invalid value throws ExceptionInInitializerError
Reviewed-by: dfuchs, lancea
This commit is contained in:
parent
cddc6ce446
commit
8ed384cfb6
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue