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 {
85
85
# matchName="scala.reflect.runtime.SymbolLoaders.initClassModule"
86
86
# problemName=MissingMethodProblem
87
87
# },
88
- {
89
- matchName="scala.reflect.runtime.JavaUniverse"
90
- problemName=MissingTypesProblem
91
- },
88
+ # {
89
+ # matchName="scala.reflect.runtime.JavaUniverse"
90
+ # problemName=MissingTypesProblem
91
+ # },
92
92
# {
93
93
# matchName="scala.reflect.runtime.JavaUniverse.initClassAndModule"
94
94
# 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
38
38
with StdAttachments
39
39
with StdCreators
40
40
with BuildUtils
41
- with PrivateWithin
42
41
{
43
42
44
43
val gen = new TreeGen { val global : SymbolTable .this .type = SymbolTable .this }
@@ -352,6 +351,21 @@ abstract class SymbolTable extends macros.Universe
352
351
*/
353
352
implicit val StringContextStripMarginOps : StringContext => StringContextStripMarginOps = util.StringContextStripMarginOps
354
353
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
+ }
355
369
}
356
370
357
371
object SymbolTableStats {
You can’t perform that action at this time.
0 commit comments