-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta3
-
generic
-
generic
Name: mlR10151 Date: 05/02/2001
javax.imageio.metadata.IIOMetadata has the controller and the defaultController fields.
According to the spec.,
protected IIOMetadataController defaultController
The default IIOMetadataController that will be used to provide settings for this IIOMetadata
object when the activateController method is called. This default should be set by subclasses that
choose to provide their own default controller, usually a GUI, for setting parameters.
protected IIOMetadataController controller
The IIOMetadataController that will be used to provide settings for this IIOMetadata object when
the activateController method is called. This value overrides any default controller, even when
null.
So, which controller will be used by the activateController method?
There is only one place in the IIOMetadata.java where the defaultController is used.
It's the getDefaultController method.
So, the purpose of the default controller is not clear.
Probably it must be used when the controller is null.
======================================================================