diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala index c03094bc6a..d6176a15d5 100644 --- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala +++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala @@ -165,7 +165,8 @@ trait MethodSynthesis { } def addDerivedTrees(typer: Typer, stat: Tree): List[Tree] = stat match { - case vd @ ValDef(mods, name, tpt, rhs) if deriveAccessors(vd) && !vd.symbol.isModuleVar => + case vd @ ValDef(mods, name, tpt, rhs) + if deriveAccessors(vd) && !vd.symbol.isModuleVar && !vd.symbol.isJava => // If we don't save the annotations, they seem to wander off. val annotations = stat.symbol.initialize.annotations val trees = ( @@ -183,7 +184,6 @@ trait MethodSynthesis { if (!trees.exists(_.symbol hasAnnotation ann.symbol)) issueAnnotationWarning(vd, ann, GetterTargetClass) ) - trees case vd: ValDef => warnForDroppedAnnotations(vd) |