Scala compilation issue
ppllaxxa opened this issue · 1 comments
ppllaxxa commented
Hello, maybe somebody had the same issue, or maybe there is som scala experts.
Once we updated library from "com.jcraft" % "jsch" % "0.1.55"
to "com.github.mwiede" % "jsch" % "0.2.16"
We are seeing strang compilation error:
scala.reflect.internal.FatalError:
bad constant pool index: 0 at 50924
while compiling: <some_our_class>
during phase: globalPhase=jvm, enteringPhase=namer
library version: version 2.12.6
compiler version: version 2.12.6
last tree to typer: Ident (_root_)
tree position: line 8 of <some_our_class>
tree tpe: <root>
symbol: final package _root_
symbol definition: final package _root_ (a RootPackage)
symbol package: <none>
symbol owners: package _root_
call site: package sftp in package file in package file
== Source file context for tree position ==
5 import com.jcraft.jsch.Session;
6 import com.jcraft.jsch.SftpATTRS;
7 import com.jcraft.jsch.SftpException;
8 import com.jcraft.jsch.ChannelSftp;
SBT version 0.13.17
scala version 2.12.6
Java 8
Maybe somebody could advise what is the problem?
norrisjeremy commented
Hi @ppllaxxa,
I'm not very familiar with Scala, but some simple Google searches suggest this could be some sort of bug with the Scala compiler that is fixed if you upgrade to a newer version of SBT and/or Scala.
Thanks,
Jeremy