Mercurial > hg > octave-lyh
comparison scripts/java/javamem.m @ 15790:921912c92102
Deprecate java_invoke, replace with javaMethod.
Update all m-files to use javaMethod.
* scripts/deprecated/java_invoke.m: New m-file with warning about function
being deprecated.
* libinterp/octave-value/ov-java.cc(Fjava_invoke, FjavaMethod): Remove
java_invoke. Replace body of javaMethod with old java_invoke code.
* libinterp/octave-value/ov-java.cc(do_java_invoke): Rename to do_javaMethod.
* libinterp/octave-value/ov-java.cc(do_java_create): Rename to do_javaObject.
* libinterp/octave-value/ov-java.h(do_java_invoke, do_java_create): Rename
prototypes for functions to do_javaMethod and do_javaObject respectively.
* scripts/deprecated/javafields.m, scripts/deprecated/javamethods.m,
scripts/deprecated/module.mk, scripts/general/fieldnames.m,
scripts/general/methods.m, scripts/java/errordlg.m, scripts/java/helpdlg.m,
scripts/java/inputdlg.m, scripts/java/javaArray.m, scripts/java/javaaddpath.m,
scripts/java/javaclasspath.m, scripts/java/javamem.m,
scripts/java/javarmpath.m, scripts/java/listdlg.m, scripts/java/msgbox.m,
scripts/java/questdlg.m, scripts/java/warndlg.m: Replace java_invoke calls
with javaMethod calls.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 14 Dec 2012 09:51:37 -0800 |
parents | 0f1a143e5002 |
children | 93516992ee34 |
comparison
equal
deleted
inserted
replaced
15789:8056d0e36bef | 15790:921912c92102 |
---|---|
65 ## 2010-08-25 Corrected text on java memory assignments | 65 ## 2010-08-25 Corrected text on java memory assignments |
66 ## 2010-09-05 Further overhauled help text | 66 ## 2010-09-05 Further overhauled help text |
67 | 67 |
68 function jmem = javamem () | 68 function jmem = javamem () |
69 | 69 |
70 rt = java_invoke ("java.lang.Runtime", "getRuntime"); | 70 rt = javaMethod ("getRuntime", "java.lang.Runtime"); |
71 rt.gc; | 71 rt.gc; |
72 jvmem = cell (3, 1); | 72 jvmem = cell (3, 1); |
73 jvmem{1} = rt.maxMemory ().doubleValue (); | 73 jvmem{1} = rt.maxMemory ().doubleValue (); |
74 jvmem{2} = rt.totalMemory ().doubleValue (); | 74 jvmem{2} = rt.totalMemory ().doubleValue (); |
75 jvmem{3} = rt.freeMemory ().doubleValue (); | 75 jvmem{3} = rt.freeMemory ().doubleValue (); |