-
Notifications
You must be signed in to change notification settings - Fork 21
scala runner puts . into class path implicitly #5528
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5528?orig=1 |
@djspiewak said: |
John Tang Boyland (john.boyland) said: |
@paulp said: |
@paulp said: |
John Tang Boyland (john.boyland) said: |
@paulp said (edited on Feb 28, 2012 3:44:36 AM UTC):
|
John Tang Boyland (john.boyland) said:
|
If you specify the class path using -cp, scala
will nonetheless use "." to get class files if they are there.
I have a simple test case with a JAR file with the results of compiling
two Scala files that print #1 when invoked. The #2 versions are the
same but print #2. If I execute "scala -cp " in the directory
with the compiled versions of the #2 files, it gets those rather than the
ones from the JAR files: . takes precedence over the class path.
I unset the CLASSPATH environment variable.
I suspected a java bug, but I have been unable to duplicate a Java only
situation. It may have something to do with the very large number of
JAR files passed to -Xbootclasspath/a in scala 2.9.1
Workaround: use the -nobootcp option.
See the following script.
The text was updated successfully, but these errors were encountered: