Check ObjectClassDefinition.getIcon(int size) behaviour if exact size is not 
provided
-------------------------------------------------------------------------------------

                 Key: FELIX-2095
                 URL: https://issues.apache.org/jira/browse/FELIX-2095
             Project: Felix
          Issue Type: Task
          Components: Metatype Service, Specification compliance
    Affects Versions: metatype-1.0.4
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger


According to the specification, the ObjectClassDefinition.getIcon(int size) 
should return an InputStream to an icon of the desired size; but: "The
returned icon maybe larger or smaller than the indicated size." (OSGI 
Compendium R4.2, 105.13.6.6)

The current implementation returns either an icon with the exact size or the 
largest icon provided not larger than the desired size.

The OSGI Compendium CT expect to only get an icon if an icon of the exact size 
is provided.

The question is: Should the getIcon method really only return an icon if the 
MetaType declaration provides the exact size upon declaration in the Icon 
element ? And is thus the remark that the size need not match be destined at 
the situation that the actual icon data need not match the size declared in the 
Icon element ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to