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

Roger Riggs rriggs at openjdk.java.net
Mon Dec 6 16:01:43 UTC 2021


> 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.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6704/files
  - new: https://git.openjdk.java.net/jdk/pull/6704/files/ecb9aa90..da95d900

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6704&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6704&range=00-01

  Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6704.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6704/head:pull/6704

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


More information about the core-libs-dev mailing list