You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xmlprotocol.scala:12:18: package object inheritance is deprecated (https://github.com/scala/scala-dev/issues/441);
[error] drop the `extends` clause or use a regular object instead
[error] Scala 3 migration messages are errors under -Xsource:3. Use -Wconf / @nowarn to filter them or add -Xmigration to demote them to warnings.
[error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=scala3-migration
[error] object `package` extends XMLProtocol { }
[error] ^
The text was updated successfully, but these errors were encountered:
I'll look at where it came back deprecated. Some adjustments to -Xsource:3 are expected to make it less annoying in 2.13.13, and this seems like a good candidate.
Edit: what a tangled web of history. The deprecation was going to be reverted, but then they decided on -Xsource:2.14 which became -Xsource:3. scala/scala#7662
While it is true that the dotty issue tracker makes noises about not caring about package object bugs because they will go away, probably Scala 2 should only warn under -Xsource:4. Ask me if I'm joking.
The -Wconf:cat=scala3migration&site=xmlprotocol:s solution might be ok? The annoying part is cross-compiling.
scalaxb generate package object with
extends XMLProtocol
scalaxb/cli/src/main/resources/soapenvelope12_xmlprotocol.scala.template
Line 9 in 4251d3e
The text was updated successfully, but these errors were encountered: