Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 06/29/2012 10:07 PM, Michael Stahl wrote:
[PATCH 22/36] Java5 update - convert code to use generics
[PATCH 36/36] Java5 updates - update code to use generics

the above 2 patches seem to change interfaces of classes in "ridljar"
and "javaunohelper" that are likely part of the stable URE ABI, and
shouldn't be changed; i think adding type parameters is OK (after all
the Java standard libraries had these retrofitted as well, and they
don't exist at runtime anyway thanks to type erasure) but things like
replacing Hashtable with Map is not OK, so i've reverted those parts.

Things like changing from

  com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(
    Hashtable context_entries);

to

  com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(
    Hashtable<String, Object> context_entries);

(javaunohelper/com/sun/star/comp/helper/Bootstrap.java) are technically incompatible: Old client code could legitimately have called

  createInitialComponentContext(new Hashtable<Object, Object>())

which now fails to compile. However, chances of such client code are pretty low, so I'd say the changes are OK.

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.