Closed scabug closed 7 years ago
Imported From: https://issues.scala-lang.org/browse/SI-10108?orig=1 Reporter: Guenther Grill (guenther) Affected Versions: 2.11.8 Attachments:
@lrytz said:
"Please remove or make sure it appears in the correct subdirectory of the sourcepath" sounds like gradle / zinc is passing /Users/ggr/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-server/7.7.5/28bc909336b9b399d93926b99148ce66d1bf3ed3/vaadin-server-7.7.5.jar
as -sourcepath
.
Also, the error ("bad source file") seems to come from the Java compiler, not the Scala compiler. So it seems not to be a bug on our end.
Hi,
when scala is cross compiling java files, I get an duplicate class error:
When I remove the java files in the
vaadin-server
jar file, it works. When I only use java (no scala) it is also no problem, thatjava
files are contained in the jar side to side with the class files.Demo to reproduce problem is attached. Just extract, go in and type
./gradlew clean testClasses --info