Skip to content

Commit e3a1414

Browse files
authored
Merge pull request #12505 from dotty-staging/svuid-trait-warning
Replace useless @serialversionuid error by a warning
2 parents 8db4ed5 + ca65933 commit e3a1414

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
206206
val optSerial: Option[Long] =
207207
claszSymbol.getAnnotation(defn.SerialVersionUIDAnnot).flatMap { annot =>
208208
if (claszSymbol.is(Trait)) {
209-
report.error("@SerialVersionUID does nothing on a trait", annot.tree.sourcePos)
209+
report.warning("@SerialVersionUID does nothing on a trait", annot.tree.sourcePos)
210210
None
211211
} else {
212212
val vuid = annot.argumentConstant(0).map(_.longValue)

0 commit comments

Comments
 (0)