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

java.awt.image.AbstractMultiResolutionImage needs customized spec for methods of Image which it implements

XMLWordPrintable

    • 2d
    • b83
    • 9
    • b150

      Currently the source code of AbstractMultiResolutionImage

      http://jre.us.oracle.com/java/re/jdk/9/promoted/latest/docs/api/java/awt/image/AbstractMultiResolutionImage.html

      produces an inherited specification for implemented methods.

      At least for getGraphics() method the default spec gives no hint that UnsupportedOperationException could be thrown ("throws" is not inherited) - so a JCK test formally written according to the spec will instantly fail. For the rest of the methods it would be veeery helpful to specify that method calls are all delegated to the base image.

      It could probably be guessed from the spec that delegation happens however for keeping the spec unambiguous it needs to write few words for every implemented method of Image interface

            aniyogi Avik Niyogi (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: