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

Brian Burkhalter bpb at openjdk.java.net
Thu Dec 16 21:52:02 UTC 2021


On Mon, 6 Dec 2021 16:01:43 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.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Clarified that a runtime exception may be thrown by the filter factory returned from `ObjectInputFilter.Config.getSerialFilterFactory()`
>   not by the `getSerialFilterFactory` method.

Marked as reviewed by bpb (Reviewer).

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

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


More information about the core-libs-dev mailing list