Hi,
i have a java service which is called from basic macro as seen below.
it works with aoo415, but will fail with lo 5.4.7.2:
module org {
module test {
interface XMeta {
interface com::sun::star::lang::XServiceInfo;
boolean initialize([in] com::sun::star::lang::XComponent xComponent);
// getter() without parameter will fail
string getName(); // not working
// setter() returning void will fail
void setName([in] string sAutor); // not working
string getVersion(); // not working
boolean setVersion([in] string sVersion); // works
};
};
module org {
module test {
service Meta : XMeta;
};
};
calling from basic:
oHandler = CreateUnoService("org.test.Meta")
oHandler.initialize(ThisComponent)
' will fail with a RuntimeExecption: "illegal object given!"
' [jni_uno bridge error] UNO calling Java method queryInterface: java.lang.NoSuchMethodError:
getName
' java stack trace: java.lang.NoSuchMethodError: getName
it seem's the get/set Methods are automatically mapped to properties?
any hints what could be wrong?
Regards
Oliver
Context
- java service with get/set methods will fail with ""illegal object given!" · Oliver Brinzing
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.