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

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

[Octave-bug-tracker] [bug #42702] isa() does not check parent class of j


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #42702] isa() does not check parent class of java object
Date: Mon, 07 Jul 2014 23:29:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0

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

                 Summary: isa() does not check parent class of java object
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Mon 07 Jul 2014 23:29:17 GMT
                Category: None
                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.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The function isa() should return true not only when the object is of the
specified class, but also when it's derived of it. However, for java objects
this does not apply:


octave-cli-3.8.1> x = javaObject ('java.lang.Double', 10)
x =

<Java object: java.lang.Double>

octave-cli-3.8.1> isa (x, 'java.lang.Number')
ans = 0


while in Matlab:


>> x = javaObject ('java.lang.Double', 10);
>> isa (x, 'java.lang.Number')

ans =

     1






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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