jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.91k stars 873 forks source link

Creating HashSet in Scala fails with compilation exception #745

Open jankotek opened 8 years ago

jankotek commented 8 years ago
   val db = DBMaker.memoryDB().make()
    val create3: HTreeMap.KeySet[String] = db.hashSet("bb",Serializer.STRING).create()

fails with

Error:(65, 85) type mismatch;
 found   : org.mapdb.org.mapdb.[String]
 required: org.mapdb.HTreeMap.KeySet[String]
    val create3: HTreeMap.KeySet[String] = db.hashSet("bb",Serializer.STRING).create()
shuttie commented 4 years ago

On mapdb 3.0.8, scala 2.12.11 and jdk11 the issue is not reproducible anymore.