You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/02/18 15:41:27 UTC

[jira] Commented: (FELIX-2095) Check ObjectClassDefinition.getIcon(int size) behaviour if exact size is not provided

    [ https://issues.apache.org/jira/browse/FELIX-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835225#action_12835225 ] 

Felix Meschberger commented on FELIX-2095:
------------------------------------------

BJ Hargrave confirmed this to be a potential bug in the CT. Reported OSGi bug https://www.osgi.org/bugzilla/show_bug.cgi?id=67


> 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.