java_invoke deprecated in favor of javaMethod

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

java_invoke deprecated in favor of javaMethod

Rik-4
12/14/12

All,

java_invoke has been deprecated to adhere more closely to the Matlab Java
Interface.

A short one-liner to update legacy code to the new calling convention is

perl -i.bak -pe 's/java_invoke\s*\(\s*([^,]*),\s*([^,)]*)/javaMethod ($2,
$1/' FILE_NAMES

I didn't say it was pretty, just that it was one line.

--Rik