File tree 1 file changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/sbt
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,14 @@ class ExtractDependencies extends Phase {
127
127
// We can recover the fully qualified name of a classfile from
128
128
// its path
129
129
val classSegments = pf.givenPath.segments.takeRight(packages + 1 )
130
- binaryDependency(pf.file, binaryClassName(classSegments))
130
+ // FIXME: pf.file is null for classfiles coming from the modulepath
131
+ // (handled by JrtClassPath) because they cannot be represented as
132
+ // java.io.File, since the `binaryDependency` callback must take a
133
+ // java.io.File, this means that we cannot record dependencies coming
134
+ // from the modulepath. For now this isn't a big deal since we only
135
+ // support having the standard Java library on the modulepath.
136
+ if (pf.file != null )
137
+ binaryDependency(pf.file, binaryClassName(classSegments))
131
138
132
139
case _ =>
133
140
ctx.warning(s " sbt-deps: Ignoring dependency $depFile of class ${depFile.getClass}} " )
You can’t perform that action at this time.
0 commit comments