Closed marcospereira closed 3 years ago
The same happens with Scala 2.13.5.
This is caused by -Yrangepos
being enabled by default in 2.13.4+.
Adding -Yrangepos:false
makes it work on 2.13.4/5, adding -Yrangepos:true
causes the same failure on 2.13.3.
The test suite runs without range positions by default https://github.com/lightbend/genjavadoc/blob/bd654c74201d73cdb109216496c6813936e7d128/src/test/scala/com/typesafe/genjavadoc/util/CompilerSpec.scala#L23-L24
@raboof noticed this before at https://github.com/lightbend/genjavadoc/issues/220
Oh, good. I'm gonna close this one then as a duplicate. Thanks, @lrytz!
Project to reproduce the problem: https://github.com/marcospereira/scala-2.13.4-genjavadoc-failure
Java version:
The code generated when using Scala 2.13.4 is:
And then Javadoc fails with:
The (valid) code generated when using Scala 2.13.3 is: