mapdb icon indicating copy to clipboard operation
mapdb copied to clipboard

Creating HashSet in Scala fails with compilation exception

Open jankotek opened this issue 9 years ago • 1 comments

   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()

jankotek avatar Jul 15 '16 06:07 jankotek

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

shuttie avatar Jun 09 '20 14:06 shuttie