[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40852] problem with getting values of HashMap
From: |
Michael Goffioul |
Subject: |
[Octave-bug-tracker] [bug #40852] problem with getting values of HashMap when key is Integer or String (java package) |
Date: |
Mon, 09 Dec 2013 17:17:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36 |
Update of bug #40852 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
1) you mixed-up getStringStringMap and getIntegerStringMap in your tests;
things should work fine with getStringStringMap
2) due to automatic boxing/unboxing between octave and java, you need to be
careful about what you're doing; if you want to pass a java.lang.Integer to
java, you need to use a int32 on the octave-side; atm there's no equivalent to
java.lang.Long (using int64 won't do the trick)
3) due to the nature of HashMap.get method, which accepts a Object argument,
the octave/java binding will not be able to auto-cast a double into
java.lang.Integer; the bindings don't know that the key type is integer (the
octave/java bindings code pre-dates support for generic classes in java)
Please note that the java package is now obsolete and that the octave/java
integration is now part of core octave.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40852>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/