Feature request: make Swift.Array implement java.util.List, and Swift.Dictionary implement java.util.Map


(Jon Nermut) #1

The recent change of Array and Dictionary being mapped classes of ArrayList and HashMap to being wrapper classes took me by surprise, and causes lots of compile issues to fix in my Java code which interacts with compiled Silver code. The changes are making new wrappers as necessary, or accessing the .getplatformlist / map methods as needed.

This would have been a bit easier to deal with if the wrappers implemented java.util.List and java.util.Map respectively.

All the implementation needs to do is delegate straight back to the internal list or map.


(marc hoffman) #2

I know. Me too. But we’ve been getting shit from Swift folks for these not being structs since day one, so now hat we were finally able to implement them as structs while still being efficient, we had to make the switch.

Good idea, yes. We should do that. I’ll log an issue.


(RemObjects) #3

Thanks, logged as bugs://81145


(RemObjects) #4

bugs://81145 got closed with status fixed.