Mercurial > octave
changeset 21780:3bbc8e89a24c stable
Don't overly restrict options passed to Java jvm (bug #39063).
* ov-java.cc (read_java_opts): Check only that possible option string begins
with '-', not that it belongs to either the '-X' or '-D' series of options.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 26 Nov 2015 10:08:34 -0800 |
parents | 1e81dd035639 |
children | da4554d2342d 7720b8246f89 |
files | libinterp/octave-value/ov-java.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-java.cc Wed May 25 12:21:59 2016 -0700 +++ b/libinterp/octave-value/ov-java.cc Thu Nov 26 10:08:34 2015 -0800 @@ -135,8 +135,7 @@ while (! js.eof () && ! js.fail ()) { std::getline (js, line); - if (line.length () > 2 - && (line.find ("-D") == 0 || line.find ("-X") == 0)) + if (line.find ("-") == 0) java_opts.push_back (line); else if (line.length () > 0 && Vdebug_java) std::cerr << "invalid JVM option, skipping: " << line << std::endl;