First of all XIntrospectionAccess does not support the method
.inspect(...), it is
css :: beans :: XIntrospection. XIntrospectionAccess is the type of
the *returned* object instead.
I hope you also know about the queryInterface concept, if not -> have
a look at the Developer's Guide. Its' about safe type casting of
objects, which I don't see in that one line of code you provide.

2005/7/13, Rony G. Flatscher <[EMAIL PROTECTED]>:
>  Hi there,
>  
>  just a question using introspection via Java: if using 
>  
> o=com.sun.star.beans.XIntrospectionAccess.inspect(someObject);
>  on OOo 1.1.4 I receive "method invocation failed:
> java.lang.IllegalArgumentException: object is not an
> instance of declaring class". 
>  
>  Is there something special I need to do/to know before using introspection
> via Java?
>  
>  TIA,
>  
>  ---rony
>  
>  
>  
>  
>  


-- 
Best Regards
Christian Junker

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to