Integrated: 8278044: ObjectInputStream methods invoking the OIF.CFG.getSerialFilterFactory() silent about error cases.

Roger Riggs rriggs at openjdk.java.net
Tue Dec 21 15:20:49 UTC 2021


On Fri, 3 Dec 2021 16:16:30 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> The specification of ObjectInputStream constructors that invoke `ObjectInputFilter.Config.getSerialFilterFactory()` do not mention exceptions that may be thrown by the apply() method.
> 
> In both constructors, add the following to the paragraph the describes invoking the factory:
> 
>      * When the filter factory {@code apply} method is invoked it may throw a runtime exception
>      * preventing the {@code ObjectInputStream} from being constructed.

This pull request has now been integrated.

Changeset: 8c0bb53f
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/8c0bb53f5ba6e71b81c9cb99e6f1587150fe531a
Stats:     8 lines in 1 file changed: 6 ins; 0 del; 2 mod

8278044: ObjectInputStream methods invoking the OIF.CFG.getSerialFilterFactory() silent about error cases.

Reviewed-by: lancea, bpb

-------------

PR: https://git.openjdk.java.net/jdk/pull/6704


More information about the core-libs-dev mailing list