Hi all, in 2.12 this worked fine:
val argList = ListBuffer[AnyRef]()
jdbcTemplate.update(sb.toString(), argList:_*)
But in 2.13 it doesn’t compile:
type mismatch;
found : scala.collection.mutable.ListBuffer[AnyRef]
required: Seq[?]
If I make a seq
out of it, calling toSeq
, it works:
val argList = ListBuffer[AnyRef]()
jdbcTemplate.update(sb.toString(), argList.toSeq:_*)
I find this strange as a ListBuffer
is also a Seq
, what’s going on?