You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting this error from time to time:
error: trait Test is abstract; cannot be instantiated
11:09:50 [ant:scalac] @Test def testClientRequestNum = {
11:09:50 [ant:scalac] ^
The error suggests that the annotation is binding to the wrong symbol on the classpath has the same name.
I can't reproduce it, but I think I've spotted the problem. Can you?
// need to be lazy, #1782. beforeTyper to allow inferView in annotation args, SI-5892.AnnotationInfo lazily {
valcontext1= typer.context.make(ann)
context1.setReportErrors()
enteringTyper(newTyper(context1) typedAnnotation ann)
}
The text was updated successfully, but these errors were encountered:
@retronym said (edited on Jun 24, 2013 11:46:49 AM UTC):
I'm still unable to craft a test to trigger this. My hypothesis is that the field Typer#context is mutated between the point when the lazy annotation info is created and when it is forced.
A few breadcrumbs for code that might be of interest:
// Namers.scaladefenterSyms(trees: List[Tree]):Namer= {
trees.foldLeft(this:Namer) { (namer, t) =>valctx= namer enterSym t
// for Import trees, enterSym returns a changed context, so we need a new namerif (ctx eq namer.context) namer
else newNamer(ctx)
}
}
// Typer#typeStats
stat match {
case imp @Import(_, _) =>
imp.symbol.initialize
if (!imp.symbol.isError) {
context = context.makeNewImport(imp)
typedImport(imp)
} elseEmptyTree
We've had reports of:
I see the error is similar to one we spotted on a build here: scala/scala#2107 (comment)
The error suggests that the annotation is binding to the wrong symbol on the classpath has the same name.
I can't reproduce it, but I think I've spotted the problem. Can you?
The text was updated successfully, but these errors were encountered: