File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
src/dotty/tools/backend/jvm Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 66# Configuration
77SCALA_VERSION=2.11.5
88SCALA_BINARY_VERSION=2.11
9- SCALA_COMPILER_VERSION=2.11.5-20150402-193021-0c75410da3
9+ SCALA_COMPILER_VERSION=2.11.5-20150416-144435-09c4a520e1
1010DOTTY_VERSION=0.1
1111JLINE_VERSION=2.12
1212bootcp=true
@@ -57,13 +57,13 @@ checkjar $TEST_JAR test:package
5757
5858# Autodetecting the scala-library location, in case it wasn't provided by an environment variable
5959if [ " $SCALA_LIBRARY_JAR " == " " ]
60- then
60+ then
6161 SCALA_LIBRARY_JAR=$HOME /.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-$SCALA_VERSION .jar
6262 # this is location where sbt stores it in ivy cache
6363fi
6464# save as for scala-library now for scala-reflect
6565if [ " $SCALA_REFLECT_JAR " == " " ]
66- then
66+ then
6767 SCALA_REFLECT_JAR=$HOME /.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-$SCALA_VERSION .jar
6868fi
6969if [ " $SCALA_COMPILER_JAR " == " " ]
7272fi
7373
7474if [ " $JLINE_JAR " == " " ]
75- then
75+ then
7676 JLINE_JAR=$HOME /.ivy2//cache/jline/jline/jars/jline-$JLINE_VERSION .jar
7777fi
7878
7979if [ ! -f " $SCALA_LIBRARY_JAR " -o ! -f " $SCALA_REFLECT_JAR " -o ! -f " $SCALA_COMPILER_JAR " -o ! -f " $JLINE_JAR " ]
8080then
81- echo To use this script please set
81+ echo To use this script please set
8282 echo SCALA_LIBRARY_JAR to point to scala-library-$SCALA_VERSION .jar " (currently $SCALA_LIBRARY_JAR )"
8383 echo SCALA_REFLECT_JAR to point to scala-reflect-$SCALA_VERSION .jar " (currently $SCALA_REFLECT_JAR )"
8484 echo SCALA_COMPILER_JAR to point to scala-compiler-$SCALA_VERSION .jar with bcode patches " (currently $SCALA_COMPILER_JAR )"
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ object DottyBuild extends Build {
3131 // get reflect and xml onboard
3232 libraryDependencies ++= Seq (" org.scala-lang" % " scala-reflect" % scalaVersion.value,
3333 " org.scala-lang.modules" %% " scala-xml" % " 1.0.1" ,
34- " me.d-d" % " scala-compiler" % " 2.11.5-20150402-193021-0c75410da3 " ,
34+ " me.d-d" % " scala-compiler" % " 2.11.5-20150416-144435-09c4a520e1 " ,
3535 " jline" % " jline" % " 2.12" ),
3636
3737 // get junit onboard
Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
103103 val BoxesRunTimeModule = ctx.requiredModule(" scala.runtime.BoxesRunTime" )
104104 val BoxesRunTimeClass = toDenot(BoxesRunTimeModule ).moduleClass.asClass
105105
106+ // require LambdaMetafactory: scalac uses getClassIfDefined, but we need those always.
107+ override lazy val LambdaMetaFactory = ctx.requiredClass(" java.lang.invoke.LambdaMetafactory" )
108+ override lazy val MethodHandle = ctx.requiredClass(" java.lang.invoke.MethodHandle" )
109+
106110 val nme_valueOf : Name = StdNames .nme.valueOf
107111 val nme_apply = StdNames .nme.apply
108112 val NothingClass : Symbol = defn.NothingClass
@@ -423,7 +427,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
423427 case TermRef (prefix : ThisType , name) =>
424428 Some (tpd.This (prefix.cls).select(i.symbol))
425429 case TermRef (NoPrefix , name) =>
426- if (i.symbol is Flags .Method ) Some (This (i.symbol.enclosingClass ).select(i.symbol)) // workaround #342 todo: remove after fixed
430+ if (i.symbol is Flags .Method ) Some (This (i.symbol.topLevelClass ).select(i.symbol)) // workaround #342 todo: remove after fixed
427431 else None
428432 case _ => None
429433 }
You can’t perform that action at this time.
0 commit comments