Re: java service with get/set methods will fail with ""illegal object given!"

2018-07-13 Thread Oliver Brinzing

Hi,

> Can you submit a bug for this at ?

at the moment i can't provide a simple example.
noticed, the problem seems to occur only in a special environment.

Regards
Oliver

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: java service with get/set methods will fail with ""illegal object given!"

2018-07-10 Thread Miklos Vajna
Hi,

On Mon, Jul 09, 2018 at 07:34:41PM +0200, Oliver Brinzing 
 wrote:
> 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:

Can you submit a bug for this at ?

In general the intention is to not break the API, but it's hard to say
without reproducing locally.

Regards,

Miklos


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


java service with get/set methods will fail with ""illegal object given!"

2018-07-09 Thread Oliver Brinzing

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
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice