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

scalac ignores empty classpath argument #4782

Closed
scabug opened this issue Jul 8, 2011 · 2 comments
Closed

scalac ignores empty classpath argument #4782

scabug opened this issue Jul 8, 2011 · 2 comments
Assignees

Comments

@scabug
Copy link

@scabug scabug commented Jul 8, 2011

scalac drops an empty argument to -cp, using the next argument instead. For example, in the following command line, it uses A.scala as the classpath and only B.scala is a source file.

scalac -cp "" A.scala B.scala

You can verify this by creating A.scala and B.scala as follows:

A.scala

class A

B.scala

class B extends A

A won't be found when scalac compiles B. This is a regression from 2.8.1

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Jul 8, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4782?orig=1
Reporter: @harrah
Affected Versions: 2.9.0, 2.9.1

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Jul 26, 2011

Commit Message Bot (anonymous) said:
(extempore in r25376) Discard empty strings in option position, but not in argument position.
Closes #4782, no review.

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.