The function is defined in java as: <K extends Comparable, V> NavigableMap<K, V> createTreeMap(String name);
I’m trying to call it in Kotlin as:
val header = db.createTreeMap<String, Array<String>>(“header”)
The Kotlin compiler complains that:
Type argument is not within its bounds: should be subtype of ‘java.lang.Comparable<out jet.Any?>?’
And hightlights the first String type above.
Am I missing something or is this a bug?
Thanks,
Dave