diff options
author | Martin Odersky <odersky@gmail.com> | 2013-06-15 21:44:38 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-06-15 21:44:38 +0200 |
commit | 658fc7f7070e8f13abd0391ff4e6045ac34e2891 (patch) | |
tree | 3e3faa9cc19eeb43b6850223705d2a52dfb3f58f /src | |
parent | a3f6a1df1bd623ee913e41f739b3f13ac9638d14 (diff) | |
download | dotty-658fc7f7070e8f13abd0391ff4e6045ac34e2891.tar.gz dotty-658fc7f7070e8f13abd0391ff4e6045ac34e2891.tar.bz2 dotty-658fc7f7070e8f13abd0391ff4e6045ac34e2891.zip |
Forward-ported Jason's fix to setting privateWIthin from Java classfiles.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala index 8a790d760..e07f87b1d 100644 --- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala +++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala @@ -119,6 +119,7 @@ class ClassfileParser( moduleRoot.setFlag(Flags.JavaDefined | Flags.ModuleClassCreationFlags) setPrivateWithin(classRoot, jflags) setPrivateWithin(moduleRoot, jflags) + setPrivateWithin(moduleRoot.sourceModule, jflags) for (i <- 0 until in.nextChar) parseMember(method = false) for (i <- 0 until in.nextChar) parseMember(method = true) |