Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8269698

Specification for methods of java.awt.im.InputContext should mention that they do nothing

XMLWordPrintable

      The specification for java.awt.im.InputContext

        https://docs.oracle.com/en/java/javase/16/docs/api/java.desktop/java/awt/im/InputContext.html

      doesn't seem to hint that the base (default) implementations of its methods are empty and don't comply to their specification.

      For example spec for many of the methods asserts that NPE should be thrown if arg is null, however this is not correct for the default impls.

      The spec (class level or of all the methods) needs to be clarified regarding behavior of the default implementations.

            azvegint Alexander Zvegintsev
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: