We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffe5af commit 5038c9cCopy full SHA for 5038c9c
compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -758,10 +758,12 @@ class ClassfileParser(
758
case tpnme.MethodParametersATTR =>
759
val paramCount = in.nextByte
760
for i <- 0 until paramCount do
761
- val name = pool.getName(in.nextChar)
+ val index = in.nextChar
762
val flags = in.nextChar
763
- if (flags & JAVA_ACC_SYNTHETIC) == 0 then
764
- res.namedParams += (i -> name.name)
+ if index != 0 then
+ val name = pool.getName(index)
765
+ if (flags & JAVA_ACC_SYNTHETIC) == 0 then
766
+ res.namedParams += (i -> name.name)
767
768
case tpnme.AnnotationDefaultATTR =>
769
sym.addAnnotation(Annotation(defn.AnnotationDefaultAnnot, Nil, sym.span))
0 commit comments