octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44764] exist() does not recognize Java object


From: Thomas Foesel
Subject: [Octave-bug-tracker] [bug #44764] exist() does not recognize Java objects
Date: Tue, 07 Apr 2015 15:56:49 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:36.0) Gecko/20100101 Firefox/36.0

URL:
  <http://savannah.gnu.org/bugs/?44764>

                 Summary: exist() does not recognize Java objects
                 Project: GNU Octave
            Submitted by: thofoe
            Submitted on: Tue 07 Apr 2015 03:56:48 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The Octave built-in function exist() does not recognize Java objects: the
following code

===========================
j_str=javaObject('java.lang.String','Hello, world.');
exist('j_str')
===========================

gives the output value 0, i.e. false. This is counter-intuitive/wrong, and
also different to Matlab (check with my latest available version, R2012b)
which returns 1, i.e. true; so I guess this is a bug.

This behavior is also the case if the variable has been created previously.
Octave returns the value 0 also for the following:

===========================
j_str=42;
j_str=javaObject('java.lang.String','Hello, world.');
exist('j_str')
===========================




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44764>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]