Skip to content

Commit

Permalink
use propOrElse in javaBootClassPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jtjeferreira committed Dec 20, 2024
1 parent d911336 commit ec62e90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/src/dotty/tools/dotc/config/PathResolver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ object PathResolver {
def classPathEnv: String = envOrElse("CLASSPATH", "")
def sourcePathEnv: String = envOrElse("SOURCEPATH", "")

//using propOrNone/getOrElse instead of propOrElse so that searchForBootClasspath is lazy evaluated
def javaBootClassPath: String = propOrNone("sun.boot.class.path") getOrElse searchForBootClasspath
def javaBootClassPath: String = propOrElse("sun.boot.class.path", searchForBootClasspath)

def javaExtDirs: String = propOrEmpty("java.ext.dirs")
def scalaHome: String = propOrEmpty("scala.home")
Expand Down

0 comments on commit ec62e90

Please sign in to comment.