Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.0, Scala 2.9.1
    • Fix Version/s: None
    • Component/s: Misc Compiler
    • Labels:
      None
    • Environment:

      Scala 2.9.0-1, r24860

      Description

      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

        Activity

        Hide
        Commit Message Bot added a comment -

        (extempore in r25376) Discard empty strings in option position, but not in argument position.
        Closes SI-4782, no review.

        Show
        Commit Message Bot added a comment - (extempore in r25376 ) Discard empty strings in option position, but not in argument position. Closes SI-4782 , no review.

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Mark Harrah
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development