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 -d doesnotexist leads to crash #7337

Closed
scabug opened this issue Apr 6, 2013 · 3 comments
Closed

scalac -d doesnotexist leads to crash #7337

scabug opened this issue Apr 6, 2013 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 6, 2013

~/code/scala scalac210 -d foobar src/library/scala/Predef.scala
scalac error: foobar does not exist or is not a directory
  scalac -help  gives more information
topic/same-type-old-meets-new ~/code/scala qbin/scalac -d foobar src/library/scala/Predef.scala
error: error while loading package, class file '/Users/jason/code/scala/build/quick/classes/library/scala/package.class' is broken

scala/scala@3a30af154#L1L254

@scabug
Copy link
Author

scabug commented Apr 6, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7337?orig=1
Reporter: @retronym
Affected Versions: 2.11.0-M3
See #874

@scabug
Copy link
Author

scabug commented Apr 6, 2013

@retronym said:
The removed check doesn't seem necessary for this test:

JAVA_OPTS=$DO scala-hash master -nc
[info] master => /Users/jason/usr/scala-v2.11.0-M2-181-gc57c4f8
Listening for transport dt_socket at address: 5006
Welcome to Scala version 2.11.0-20130405-175639-c57c4f8c62 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import javax.script._, collection.JavaConverters._; val manager = new ScriptEngineManager; manager.getEngineByName("scala").eval("0")
import javax.script._
import collection.JavaConverters._
manager: javax.script.ScriptEngineManager = javax.script.ScriptEngineManager@6e4ccfdc
res0: Object = 0

scala> import javax.script._, collection.JavaConverters._; val manager = new ScriptEngineManager; manager.getEngineByName("scala").eval("Predef")
import javax.script._
import collection.JavaConverters._
manager: javax.script.ScriptEngineManager = javax.script.ScriptEngineManager@19451392
res1: Object = scala.Predef$@6d7300f9

@scabug
Copy link
Author

scabug commented Apr 6, 2013

@retronym said:
scala/scala#2361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants