Open xuwei-k opened 1 year ago
I guess we'd have to pick some other solution, like call it object XMLProtocol
instead, and tell everyone to add imports everywhere.
It was deprecated and undeprecated, and received a meh
from dotty at https://github.com/scala/scala/pull/7662#issuecomment-465751076
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
. https://github.com/scala/scala/pull/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
https://github.com/eed3si9n/scalaxb/blob/4251d3e5f051a2701b30b3886f04ae70c31de3d9/cli/src/main/resources/soapenvelope12_xmlprotocol.scala.template#L9