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
$ for V in 2.12.15 2.13.6; do echo $V; scalac --scala-version $V -d /tmp -Ypickle-java -Ypickle-write /tmp/c.jar /tmp/C.java && scalac --scala-version $V -cp /tmp/c.jar /tmp/Client.scala; done
2.12.15
2.13.6
/tmp/Client.scala:3: error: ambiguous reference to overloaded definition,
both method ol in class C of type (o: Object): Unit
and method ol in class C of type (o: Equals): Unit
match argument types (Option[String])
C.ol(Option(""))
^
1 error
-Ypickle-write is part of the infrastructure to support build pipelining. It writes a .sig file for .java source file that has its API typechecked by the Scala compiler. This can be uses on the classpath of downstream Scala compilation, instead of .class files.
The text was updated successfully, but these errors were encountered:
retronym
added a commit
to retronym/scala
that referenced
this issue
Dec 10, 2021
-Ypickle-write-java can generate Scala pickles for Java files.
Unpickler needs to deal with the special case for Object/Any,
as we do when using Java sources of javac compiled .class files
as inputs.
Fixesscala/bug#12512
The specific case that I believe is caused by this is:
The relevant changes in 2.13 were:
scala/scala#7966
scala/scala#8049
-Ypickle-write
is part of the infrastructure to support build pipelining. It writes a .sig file for .java source file that has its API typechecked by the Scala compiler. This can be uses on the classpath of downstream Scala compilation, instead of .class files.The text was updated successfully, but these errors were encountered: