diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-27 13:31:32 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-07-27 13:31:32 +1000 |
commit | f2d7838d904572b3dd15a9ef223ecfd1a6e14697 (patch) | |
tree | 20d04ea95d60d936f0e48c9767e50e869704d68a /src/compiler/scala/tools/nsc/symtab | |
parent | 4c6dcfe9341d2db47a0b0a567f5646fb9d573020 (diff) | |
parent | 241bb9ac192f13868436d9a4e2e7ae29a2e22bed (diff) | |
download | scala-f2d7838d904572b3dd15a9ef223ecfd1a6e14697.tar.gz scala-f2d7838d904572b3dd15a9ef223ecfd1a6e14697.tar.bz2 scala-f2d7838d904572b3dd15a9ef223ecfd1a6e14697.zip |
Merge pull request #4657 from lrytz/backports
backports from 2.12.x
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index 660028eab8..06a0299d2a 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -284,7 +284,7 @@ abstract class ClassfileParser { def getType(index: Int): Type = getType(null, index) def getType(sym: Symbol, index: Int): Type = sigToType(sym, getExternalName(index)) - def getSuperClass(index: Int): Symbol = if (index == 0) AnyClass else getClassSymbol(index) + def getSuperClass(index: Int): Symbol = if (index == 0) AnyClass else getClassSymbol(index) // the only classfile that is allowed to have `0` in the super_class is java/lang/Object (see jvm spec) private def createConstant(index: Int): Constant = { val start = starts(index) @@ -862,7 +862,7 @@ abstract class ClassfileParser { srcfile0 = settings.outputDirs.srcFilesFor(in.file, srcpath).find(_.exists) case tpnme.CodeATTR => if (sym.owner.isInterface) { - sym setFlag DEFAULTMETHOD + sym setFlag JAVA_DEFAULTMETHOD log(s"$sym in ${sym.owner} is a java8+ default method.") } in.skip(attrLen) |