diff libinterp/octave-value/ov-java.cc @ 25041:d5d61f1b6de0 stable

Deprecate java2mat function. * NEWS: Announce deprecation. * scripts/deprecated/java2mat.m: New function to issue a warning if used. Calls __java2mat__ to implement functionality. * scripts/deprecated/module.mk: Add java2mat.m to build system. * ov-java.cc (F__java2mat__): Renamed from java2mat.
author Rik <rik@octave.org>
date Wed, 28 Mar 2018 13:41:48 -0700
parents 1e207bd05b5d
children 6652d3823428
line wrap: on
line diff
--- a/libinterp/octave-value/ov-java.cc	Wed Mar 28 13:12:01 2018 -0700
+++ b/libinterp/octave-value/ov-java.cc	Wed Mar 28 13:41:48 2018 -0700
@@ -1848,7 +1848,7 @@
 //! Initializes the fields #jvm, #jvm_attached, #jvm_lib, and
 //! #octave_thread_ID.  To ensure that java is initialized, this method is
 //! used as part of octave functions @c javaObject, @c javaMethod,
-//! @c __java_get__, @c __java_set__, and @c java2mat.
+//! @c __java_get__, @c __java_set__, and @c __java2mat__.
 
 static void
 initialize_java (void)
@@ -3180,9 +3180,9 @@
 #endif
 }
 
-DEFUN (java2mat, args, ,
+DEFUN (__java2mat__, args, ,
        doc: /* -*- texinfo -*-
-@deftypefn {} {} java2mat (@var{javaobj})
+@deftypefn {} {} __java2mat__ (@var{javaobj})
 Undocumented internal function.
 @end deftypefn */)
 {
@@ -3211,7 +3211,7 @@
 
   octave_unused_parameter (args);
 
-  err_disabled_feature ("java2mat", "Java");
+  err_disabled_feature ("__java2mat__", "Java");
 
 #endif
 }