Skip to content

Commit 661068a

Browse files
committed
Drop reference to NotJavaPrivate in access checks.
Verified that all tests still run. This is a first step, so that we can later on eliminate NotJavaPrivate altogether.
1 parent 275c340 commit 661068a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ object SymDenotations {
958958
*/
959959
final def accessBoundary(base: Symbol)(implicit ctx: Context): Symbol = {
960960
val fs = flags
961-
if (fs is (Private, butNot = NotJavaPrivate)) owner
961+
if (fs is Private) owner
962962
else if (fs is StaticProtected) defn.RootClass
963963
else if (privateWithin.exists && !ctx.phase.erasedTypes) privateWithin
964964
else if (fs is Protected) base

0 commit comments

Comments
 (0)