[Libreoffice] IDL "hyper" / Java "long"

Stephan Bergmann sbergman at redhat.com
Fri Oct 21 09:37:34 PDT 2011


Marcin, hope you don't mind I bring this back to the public mailing 
list.  I'm no expert with Calc add-ins, so we should make sure I'm not 
telling nonsense:

On 10/21/2011 05:42 PM, MarcinGutman wrote:
>> Sorry, not sure what you want to tell me with the above.
>>
>
> If you create Java Calc Add-In you have a Java function.
> There is also an IDL file that reflects definition of Java function.
> Parameters types are mapped from Java to IDL
> If Java parameter is "int" in IDL you put "long".
> If Java parameter is "long" in IDL you put "hyper" or "unsigned hyper".
> If you put "hyper" there is a mentioned problem.
> If you put "unsigned hyper" there is no problem.
>
> So there are three cases:
> 1) A comedy: it's only my box.
> 2) A drama: bug in SDK i.e. "only" new Calc Add-Ins are affected.
> 3) A horror: bug in LOo i.e. all existing Calc Add-Ins are affected.
>
> Due to 3) somebody should check it.

As I wrote at <https://bugs.freedesktop.org/show_bug.cgi?id=42005#c1>, 
Calc add-ins do not support functions that take or return UNO type hyper.

So I think that explains why an add-in using hyper in the .idl file does 
not work.

Why, however, it should work if the .idl file instead uses unsigned 
hyper I do not know.

-Stephan


More information about the LibreOffice mailing list