diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-26 21:32:53 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-26 21:32:53 +0200 |
commit | 6a728ebabe02423bd1f172f6e75d419f8a4837a4 (patch) | |
tree | 8c6b829d38cbb70d3a3bbc8c6d2a1d15b06ded39 /src/dotty/tools/dotc/core/classfile/ClassfileParser.scala | |
parent | 0c4ca21dafd067af3d2953356b57ffb2f30093c3 (diff) | |
download | dotty-6a728ebabe02423bd1f172f6e75d419f8a4837a4.tar.gz dotty-6a728ebabe02423bd1f172f6e75d419f8a4837a4.tar.bz2 dotty-6a728ebabe02423bd1f172f6e75d419f8a4837a4.zip |
Make ClassfileConstants thread-safe.
Diffstat (limited to 'src/dotty/tools/dotc/core/classfile/ClassfileParser.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/classfile/ClassfileParser.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala b/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala index ee5453a8e..d53f545d3 100644 --- a/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala +++ b/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala @@ -89,7 +89,7 @@ class ClassfileParser( def parseClass()(implicit ctx: Context): Option[Embedded] = { val jflags = in.nextChar val isAnnotation = hasAnnotation(jflags) - val sflags = FlagTranslation.classFlags(jflags) + val sflags = classTranslation.flags(jflags) val nameIdx = in.nextChar currentClassName = pool.getClassName(nameIdx) @@ -163,8 +163,8 @@ class ClassfileParser( val start = indexCoord(in.bp) val jflags = in.nextChar val sflags = - if (method) Flags.Method | FlagTranslation.methodFlags(jflags) - else FlagTranslation.fieldFlags(jflags) + if (method) Flags.Method | methodTranslation.flags(jflags) + else fieldTranslation.flags(jflags) val name = pool.getName(in.nextChar) if (!(sflags is Flags.Private) || name == nme.CONSTRUCTOR || ctx.settings.optimise.value) { val member = ctx.newSymbol( @@ -632,7 +632,7 @@ class ClassfileParser( getOwner(jflags), entry.originalName, new ClassfileLoader(file), - FlagTranslation.classFlags(jflags), + classTranslation.flags(jflags), getScope(jflags)) } |