We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8db4ed5 + ca65933 commit e3a1414Copy full SHA for e3a1414
compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala
@@ -206,7 +206,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
206
val optSerial: Option[Long] =
207
claszSymbol.getAnnotation(defn.SerialVersionUIDAnnot).flatMap { annot =>
208
if (claszSymbol.is(Trait)) {
209
- report.error("@SerialVersionUID does nothing on a trait", annot.tree.sourcePos)
+ report.warning("@SerialVersionUID does nothing on a trait", annot.tree.sourcePos)
210
None
211
} else {
212
val vuid = annot.argumentConstant(0).map(_.longValue)
tests/neg/i8427.scala renamed to tests/neg-custom-args/fatal-warnings/i8427.scala
0 commit comments