Scala Programming Language
  1. Scala Programming Language
  2. SI-7107

scala now thinks every exception is polymorphic

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.2-RC1
    • Component/s: None
    • Labels:
      None

      Description

      Introduced in fefe6ccc0c. This happens because you are treating "!isMonomorphicType" as if it meant "isPolymorphicType". In fact !isMonomorphicType means exactly nothing. Only positive answers carry any information.

      % /scala/inst/scala-2.10.1-20130204-145353-e403e1a8dc/bin/scalac -Ylog:all -Ydebug -d /tmp /tmp/a.scala |& grep -i polymorphic
      [log <no phase>] Encountered polymorphic exception `java.lang.CloneNotSupportedException` while parsing class file.
      [log <no phase>] Encountered polymorphic exception `java.lang.InterruptedException` while parsing class file.
      [log <no phase>] Encountered polymorphic exception `java.lang.Throwable` while parsing class file.
      [log <no phase>] Encountered polymorphic exception `java.io.UnsupportedEncodingException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.ClassNotFoundException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.InstantiationException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.IllegalAccessException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.SecurityException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.NoSuchFieldException` while parsing class file.
      [log explicitouter(->erasure ->typer ->parser)] Encountered polymorphic exception `java.lang.NoSuchMethodException` while parsing class file.
      [log erasure(->posterasure ->parser)] Encountered polymorphic exception `java.lang.NumberFormatException` while parsing class file.
      

        Activity

        Hide
        Grzegorz Kossakowski added a comment -

        I'm ont it.

        Show
        Grzegorz Kossakowski added a comment - I'm ont it.
        Hide
        Grzegorz Kossakowski added a comment -

        Raised priority to Critical because it looks serious. I don't think this is a blocker because this is not worse than 2.10.0 behavior.

        Show
        Grzegorz Kossakowski added a comment - Raised priority to Critical because it looks serious. I don't think this is a blocker because this is not worse than 2.10.0 behavior.
        Show
        Grzegorz Kossakowski added a comment - Fixed by https://github.com/scala/scala/pull/2117

          People

          • Assignee:
            Grzegorz Kossakowski
            Reporter:
            Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development