Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resident compiler: sources in the empty package with dependencies #5939

Closed
scabug opened this issue Jun 17, 2012 · 2 comments
Closed

Resident compiler: sources in the empty package with dependencies #5939

scabug opened this issue Jun 17, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Jun 17, 2012

The resident compiler fails when used with the -Yinvalidate option and sources in the empty package that use an external dependency.

A.scala

import scalaz._
import Scalaz._
object A {
  def dummyDependency = true.fold(false, true)
}

B.scala is the same as A.scala but with object B (it just needs to be in the empty package and use the dependency).

$ mkdir build
$ fsc -d build -Yinvalidate build -classpath build:scalaz-core.jar A.scala B.scala
$ rm -rf build/A*.class
$ fsc -d build -Yinvalidate build -classpath build:scalaz-core.jar A.scala
error while loading Scalaz, class file
 '.../scalaz-core.jar(scalaz/Scalaz.class)'
 has location not matching its contents: contains class Scalaz

If you repeat the process, but with the sources in 'package example', no error occurs. I used scalaz 6.0.4, but the specific dependency does not appear to be important. It just needs to be from an external jar (not the standard library).

@scabug
Copy link
Author

scabug commented Jun 17, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5939?orig=1
Reporter: @harrah

@scabug
Copy link
Author

scabug commented Jul 19, 2012

@adriaanm said:
scala/scala#943

@scabug scabug closed this as completed Jul 19, 2012
@scabug scabug added the critical label Apr 7, 2017
@scabug scabug added this to the 2.10.0-M5 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants