Skip to content

Commit 6fb0343

Browse files
authored
Merge pull request scala#6033 from retronym/ticket/owner-stub
Rightful owners for stub symbols
2 parents 0b1eacf + 933703d commit 6fb0343

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/reflect/scala/reflect/internal/pickling/UnPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ abstract class UnPickler {
254254
|A full rebuild may help if '$filename' was compiled against an incompatible version of ${owner.fullName}.$advice""".stripMargin
255255
val stubName = if (tag == EXTref) name else name.toTypeName
256256
// The position of the error message is set by `newStubSymbol`
257-
NoSymbol.newStubSymbol(stubName, missingMessage)
257+
owner.newStubSymbol(stubName, missingMessage)
258258
}
259259
}
260260
}

test/files/neg/t5148.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Make sure that term memberHandlers is in your classpath and check for conflictin
44
A full rebuild may help if 'Imports.class' was compiled against an incompatible version of scala.tools.nsc.interpreter.IMain.
55
class IMain extends Imports
66
^
7-
t5148.scala:4: error: Symbol 'type <none>.Request.Wrapper' is missing from the classpath.
7+
t5148.scala:4: error: Symbol 'type scala.tools.nsc.interpreter.IMain.Request.Wrapper' is missing from the classpath.
88
This symbol is required by 'value scala.tools.nsc.interpreter.Imports.wrapper'.
99
Make sure that type Wrapper is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
10-
A full rebuild may help if 'Imports.class' was compiled against an incompatible version of <none>.Request.
10+
A full rebuild may help if 'Imports.class' was compiled against an incompatible version of scala.tools.nsc.interpreter.IMain.Request.
1111
class IMain extends Imports
1212
^
1313
two errors found

0 commit comments

Comments
 (0)