Swift.Dictionary's Implementation of java.util.Map.put broken

(Jon Nermut) #1

Came across some unexpected behaviour where I ended up with the key and value being the same in a Swift.Dictionary as I was trying to deserialise some JSON with Jackson.
Turns out to be bit of copy&paste bug, this is what Android.studio gives me as the decompile of Swift.Dictionary.put:

public Value put(Key var1, Value var2) {
    return this.getdictionary().put(var1, var1);

possibly the same problem here:

public boolean remove(Object var1, Object var2) {
    return this.getdictionary().remove(var1, var1);

In Fire 2399

(marc hoffman) #2

Oops, fixed. thanx!