Details

      Description

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

      https://github.com/scala/scala/commit/3a30af154#L1L254

        Issue Links

          Activity

          Hide
          Jason Zaugg added a comment -

          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
          
          Show
          Jason Zaugg added a comment - 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
          Show
          Jason Zaugg added a comment - https://github.com/scala/scala/pull/2361

            People

            • Assignee:
              Jason Zaugg
              Reporter:
              Jason Zaugg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development