Affects Version/s: Scala 2.9.1
Fix Version/s: Scala 2.10.0
Solaris 5.10 (x86)
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 <JARFILE>" 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.