Hi,

Thanks for the quick reply. I have posted a bug:

   https://www.osgi.org/bugzilla/show_bug.cgi?id=67

Regards
Felix

On 18.02.2010 15:27, BJ Hargrave wrote:
> Sounds like a possible CT bug. Can you open a bug?
> -- 
> 
> *BJ Hargrave*
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the _OSGi Alliance_ <http://www.osgi.org/>_
> [email protected]_ <mailto:[email protected]>   
> 
> office: +1 386 848 1781
> mobile: +1 386 848 3788
> 
> 
> 
> 
> From:         Felix Meschberger <[email protected]>
> To:   OSGi Developer Mail List <[email protected]>
> Date:         2010/02/18 05:33
> Subject:      [osgi-dev] [Metatype Service] What should
> ObjectClassDefinition.getIcon(int) return ?
> Sent by:      [email protected]
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> Hi all,
> 
> I have been running the Apache Felix Metatype Service implementation
> through the OSGi CT and found an issue with the
> ObjectClassDefinition.getIcon method. The icon is defined in the
> metatype resource file (e.g. metatype.xml) in an Icon element declaring
> the (localizable) location and the size.
> 
> Now, the getIcon(int) method is defined to return an icon of the desired
> size or null if no such icon exists. In addtion it is stated: "The
> returned icon maybe larger or smaller than the indicated size." (OSGi
> Compendium R4.2, Section 105.13.6.6)
> 
> Thus the Apache Felix getIcon(int) implementation returns either an icon
> declared with the exact desired size or and icon whose declared size is
> smaller than the desired size.
> 
> The CT expects the getIcon(int) method to only return an icon if one is
> declared for the exact size.
> 
> So, which is the intended behaviour of the getIcon(int) method ?
> 
> Should it return an icon only if an icon with the exact desired size
> exists ?
> 
> Is the cited sentence does intended to indicate that the actual Icon
> data may result in a different size as has been declared ?
> 
> Thanks for any help.
> 
> Regards
> Felix
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
> 
> 
> 
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to