File tree Expand file tree Collapse file tree 3 files changed +19
-28
lines changed
src/reflect/scala/reflect/internal Expand file tree Collapse file tree 3 files changed +19
-28
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ filter {
8585 # matchName="scala.reflect.runtime.SymbolLoaders.initClassModule"
8686 # problemName=MissingMethodProblem
8787 # },
88- {
89- matchName="scala.reflect.runtime.JavaUniverse"
90- problemName=MissingTypesProblem
91- },
88+ # {
89+ # matchName="scala.reflect.runtime.JavaUniverse"
90+ # problemName=MissingTypesProblem
91+ # },
9292 # {
9393 # matchName="scala.reflect.runtime.JavaUniverse.initClassAndModule"
9494 # problemName=MissingMethodProblem
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ abstract class SymbolTable extends macros.Universe
3838 with StdAttachments
3939 with StdCreators
4040 with BuildUtils
41- with PrivateWithin
4241{
4342
4443 val gen = new TreeGen { val global : SymbolTable .this .type = SymbolTable .this }
@@ -352,6 +351,21 @@ abstract class SymbolTable extends macros.Universe
352351 */
353352 implicit val StringContextStripMarginOps : StringContext => StringContextStripMarginOps = util.StringContextStripMarginOps
354353
354+ def importPrivateWithinFromJavaFlags (sym : Symbol , jflags : Int ): Symbol = {
355+ import ClassfileConstants ._
356+ if ((jflags & (JAVA_ACC_PRIVATE | JAVA_ACC_PROTECTED | JAVA_ACC_PUBLIC )) == 0 )
357+ // See ticket #1687 for an example of when topLevelClass is NoSymbol: it
358+ // apparently occurs when processing v45.3 bytecode.
359+ if (sym.enclosingTopLevelClass != NoSymbol )
360+ sym.privateWithin = sym.enclosingTopLevelClass.owner
361+
362+ // protected in java means package protected. #3946
363+ if ((jflags & JAVA_ACC_PROTECTED ) != 0 )
364+ if (sym.enclosingTopLevelClass != NoSymbol )
365+ sym.privateWithin = sym.enclosingTopLevelClass.owner
366+
367+ sym
368+ }
355369}
356370
357371object SymbolTableStats {
You can’t perform that action at this time.
0 commit comments