[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50358] isjava(null) is false
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #50358] isjava(null) is false |
Date: |
Mon, 20 Feb 2017 05:17:58 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #1, bug #50358 (project octave):
I do not feel comfortable with representing null as double-valued [].
The result is that the null value of a java class ,
e.g. java.math.Rounding mode is a double,
so changing the type.
b=javaArray("java.math.BigDecimal",3)
yields
b =
<Java object: java.math.BigDecimal[]>
and
b(3)=javaObject("java.math.BigDecimal",3.0)
yields
b =
<Java object: java.math.BigDecimal[]>
b(2)
yields
ans = [](0x0)
representing null.
On the other hand,
class(b(3)) yields ans = java.math.BigDecimal
whereas
class(b(2)) yields double
although in an array java.math.BigDecimal[]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50358>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/