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 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

This comment has been minimized.

Copy link
Author

@scabug scabug commented Jun 17, 2012

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Jul 19, 2012

@scabug scabug closed this 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.