Calling CreateStackOp.setSourceProducts from snappy

I have a Python list of org.esa.snap.core.datamodel.Product, but I can’t seem to pass it to CreateStackOp.setSourceProducts.

The following code

func_cs = snappy.jpy.get_type('org.esa.s1tbx.insar.gpf.coregistration.CreateStackOp')
func_cs.setSourceProducts(products)

throws RuntimeError: no matching Java method overloads found.

Converting it first to a java array products_java = snappy.jpy.array('org.esa.snap.core.datamodel.Product', len(products)) also doesn’t help.

What is the type that setSourceProducts expects?

Hi Gerald @gbaier, did you find a solution?