We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33ad399 + 9d9664f commit 653abdaCopy full SHA for 653abda
compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -1039,7 +1039,10 @@ class ClassfileParser(
1039
// attribute isn't, this classfile is a compilation artifact.
1040
return Some(NoEmbedded)
1041
1042
- if (scan(tpnme.ScalaSignatureATTR) && scan(tpnme.RuntimeVisibleAnnotationATTR)) {
+ if (scan(tpnme.ScalaSignatureATTR)) {
1043
+ if !scan(tpnme.RuntimeVisibleAnnotationATTR) then
1044
+ report.error(em"No RuntimeVisibleAnnotations in classfile with ScalaSignature attribute: ${classRoot.fullName}")
1045
+ return None
1046
val attrLen = in.nextInt
1047
val nAnnots = in.nextChar
1048
var i = 0
0 commit comments