<i18n dev> RFR: 8269698: Specification for methods of java.awt.im.InputContext should mention that they do nothing

Alexander Zvegintsev azvegint at openjdk.java.net
Mon Oct 4 18:11:06 UTC 2021

On Mon, 4 Oct 2021 17:25:16 GMT, Sergey Bylokhov <serb at openjdk.org> 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

More information about the i18n-dev mailing list