On Mon, 4 Oct 2021 17:25:16 GMT, Sergey Bylokhov <[email protected]> wrote:
> If the problem is in the validation of the parameters maybe we can enforce it?
It is one of possible solutions.
Also we have a following javadoc:
/**
* Constructs an InputContext.
* This method is protected so clients cannot instantiate
* InputContext directly. Input contexts are obtained by
* calling {@link #getInstance}.
*/
protected InputContext() {
So those validation of the parameters enforcements will be an almost dead code,
only used by synthetic specification test.
Another solution is to make this class abstract.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5806