Skip to content

Commit 63bd181

Browse files
committed
fail slightly later when scala.runtime.Lazy* is missing
1 parent 5d135dc commit 63bd181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reflect/scala/reflect/internal/Definitions.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ trait Definitions extends api.StandardDefinitions {
9393
lazy val boxedClass = classesMap(x => getClassByName(boxedName(x)))
9494
lazy val refClass = classesMap(x => getRequiredClass("scala.runtime." + x + "Ref"))
9595
lazy val volatileRefClass = classesMap(x => getRequiredClass("scala.runtime.Volatile" + x + "Ref"))
96-
lazy val lazyHolders = symbolsMap(ScalaValueClasses, x => getRequiredClass("scala.runtime.Lazy" + x))
97-
lazy val LazyRefClass = getRequiredClass("scala.runtime.LazyRef")
98-
lazy val LazyUnitClass = getRequiredClass("scala.runtime.LazyUnit")
96+
lazy val lazyHolders = symbolsMap(ScalaValueClasses, x => getClassIfDefined("scala.runtime.Lazy" + x))
97+
lazy val LazyRefClass = getClassIfDefined("scala.runtime.LazyRef")
98+
lazy val LazyUnitClass = getClassIfDefined("scala.runtime.LazyUnit")
9999

100100
lazy val allRefClasses: Set[Symbol] = {
101101
refClass.values.toSet ++ volatileRefClass.values.toSet ++ Set(VolatileObjectRefClass, ObjectRefClass)

0 commit comments

Comments
 (0)