2
votes

I'm working with JIntegra java com bridge. I have an object of type Object which true coclass is unknown. I need to check if that object can be casted to specific COM interface (which has a proxy class generated by JIntegra).

2

2 Answers

1
votes

Call queryInterface() on the proxy. It should throw an exception if the underlying COM object does not implement the proxy interface.

0
votes

If the proxy class implements a (generated) interface, can you check if the object is an instanceof that?