-
Bug
-
Resolution: Fixed
-
P2
-
9
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
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