Scala 3 compatibility improvements
Continuing the theme from 1.12.0, scalaxb 1.12.1 improves the code generation for Scala 3. In #654 @mrdziuban contributed a fix to stop passing in an implicit parameter explicitly, which started to fail to compile on Scala 3.5.0 without using
marker.
In #661 @eed3si9n further improved the Scala 3 compatibility enough to pass -Xfatal-warnings
with basic usages on LTS Scala 3.3.3 and non-LTS Scala 3.5.0:
- Passing sequence to a vararg was changed from
xs: _*
toxs*
- Self type with refinement was changed from
self: A with B =>
toself: A & B =>
- Added indentations where there were an offside "Line is indented too far to the left" warning
- Rewrote some infix usages like
value startsWith "{"
to Java-stylevalue.startsWith("{")
notation - Variable initialization was changed from
_
to Java-stylenull
- Wildcard type argument was changed from
_
to?
behind the scenes
- Set name of root project to scalaxb-root by @mdedetrich in #648
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.13.0 in /mvn-scalaxb by @dependabot in #653
- Bump org.apache.maven.plugin-tools:maven-plugin-annotations from 3.3 to 3.14.0 in /mvn-scalaxb by @dependabot in #662
- Bump org.apache.maven.plugins:maven-site-plugin from 3.0 to 3.12.1 in /mvn-scalaxb by @dependabot in #646
- Bump org.apache.maven.plugins:maven-invoker-plugin from 1.5 to 3.6.0 in /mvn-scalaxb by @dependabot in #647
- Bump junit:junit from 4.13.1 to 4.13.2 in /mvn-scalaxb by @dependabot in #645
new contributors
- @mdedetrich made their first contribution in #648
Full Changelog: v1.12.0...v1.12.1