We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3dfd762 + cecfa8c commit 4429d73Copy full SHA for 4429d73
compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -1163,7 +1163,10 @@ class ClassfileParser(
1163
// attribute isn't, this classfile is a compilation artifact.
1164
return Some(NoEmbedded)
1165
1166
- if (scan(tpnme.ScalaSignatureATTR) && scan(tpnme.RuntimeVisibleAnnotationATTR)) {
+ if (scan(tpnme.ScalaSignatureATTR)) {
1167
+ if !scan(tpnme.RuntimeVisibleAnnotationATTR) then
1168
+ report.error(em"No RuntimeVisibleAnnotations in classfile with ScalaSignature attribute: ${classRoot.fullName}")
1169
+ return None
1170
val attrLen = in.nextInt
1171
val nAnnots = in.nextChar
1172
var i = 0
0 commit comments