[ 
https://issues.apache.org/jira/browse/FELIX-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger resolved FELIX-2095.
--------------------------------------

    Resolution: Fixed

Nothing to be done here. Our implementation is correct and CT was probably too 
conservative (paying only attention to one part of the spec).
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to