diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-06-11 13:56:20 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-06-11 13:56:20 +0000 |
commit | afe4edad3cb693b76bd3ff8fd81244309e578e87 (patch) | |
tree | 9cbb6377f424e82c41a3bf40fc8395b3579a94b0 /src | |
parent | a2875b700b5d25217ad1b8ae416bd452e67df0be (diff) | |
download | scala-afe4edad3cb693b76bd3ff8fd81244309e578e87.tar.gz scala-afe4edad3cb693b76bd3ff8fd81244309e578e87.tar.bz2 scala-afe4edad3cb693b76bd3ff8fd81244309e578e87.zip |
Fixed the broken build.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala index 0c3ac481ed..82cfac5ad8 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SuperAccessors.scala @@ -418,6 +418,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT val res = /* settings.debug.value && */ ((sym hasFlag PROTECTED) + && sym.hasFlag(JAVA) && !sym.owner.isPackageClass && !accessibleThroughSubclassing && (enclPackage(sym.owner) != enclPackage(currentOwner)) @@ -431,7 +432,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT if (host.thisSym.tpe.typeSymbol.hasFlag(JAVA)) errorRestriction("%s accesses protected %s from self type %s.".format(currentOwner.enclClass, sym, host.thisSym.tpe)) false - } else if (host.isTrait && sym.hasFlag(JAVA)) { + } else if (host.isTrait && sym.hasFlag(JAVA)) { vm errorRestriction(("%s accesses protected %s inside a concrete trait method. " + "Add an accessor in a class extending %s to work around this bug.").format(currentOwner.enclClass, sym, sym.enclClass)) false |