mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 17:25:23 +02:00
Fix problem with initialization order in ClassToAPI.scala.
In `ClassToAPI` both `Private` and `Protected` vals had forward
reference to `Unqualified` so they would get `null` as a result.
Fixed that by rearranging the order of vals being declared.
This fixes a problem described in 9dd5f076ea.
This commit is contained in:
committed by
Mark Harrah
parent
76ebc3a01d
commit
129df3e812
@@ -256,9 +256,9 @@ object ClassToAPI
|
||||
val ThisRef = new api.This
|
||||
|
||||
val Public = new api.Public
|
||||
val Unqualified = new api.Unqualified
|
||||
val Private = new api.Private(Unqualified)
|
||||
val Protected = new api.Protected(Unqualified)
|
||||
val Unqualified = new api.Unqualified
|
||||
def packagePrivate(pkg: Option[String]): api.Access = new api.Private(new api.IdQualifier(pkg getOrElse ""))
|
||||
|
||||
val ArrayRef = reference("scala.Array")
|
||||
|
||||
Reference in New Issue
Block a user