Skip to content

Commit b5ac5de

Browse files
committed
fix benchmarks exception
The benchmark project generates a dubious exception when compiling scala stdlib: java.lang.ClassCastException: scala.tools.nsc.backend.jvm.BTypes$ClassBType cannot be cast to scala.tools.nsc.backend.jvm.BTypes$ArrayBType Upon investigation, this turns out to be a backend incompatibility problem. The bench project runs with a previous version of scala-compiler. Explicitly designating the scala-compiler version for bench fixes the problem.
1 parent 9096d08 commit b5ac5de

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

project/Build.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ object DottyBuild extends Build {
1313

1414
val JENKINS_BUILD = "dotty.jenkins.build"
1515

16+
val scalaCompiler = "me.d-d" % "scala-compiler" % "2.11.5-20160322-171045-e19b30b3cd"
17+
1618
val agentOptions = List(
1719
// "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
1820
// "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so"
@@ -81,7 +83,7 @@ object DottyBuild extends Build {
8183
com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys.withSource := true,
8284

8385
// get libraries onboard
84-
partestDeps := Seq("me.d-d" % "scala-compiler" % "2.11.5-20160322-171045-e19b30b3cd",
86+
partestDeps := Seq(scalaCompiler,
8587
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
8688
"org.scala-lang" % "scala-library" % scalaVersion.value % "test"),
8789
libraryDependencies ++= partestDeps.value,
@@ -242,8 +244,10 @@ object DottyBuild extends Build {
242244

243245
baseDirectory in (Test,run) := (baseDirectory in dotty).value,
244246

245-
libraryDependencies ++= Seq("com.storm-enroute" %% "scalameter" % "0.6" % Test,
246-
"com.novocode" % "junit-interface" % "0.11"),
247+
libraryDependencies ++= Seq(
248+
scalaCompiler % Test,
249+
"com.storm-enroute" %% "scalameter" % "0.6" % Test
250+
),
247251

248252
fork in Test := true,
249253
parallelExecution in Test := false,

0 commit comments

Comments
 (0)