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

scala now thinks every exception is polymorphic #7107

Closed
scabug opened this issue Feb 9, 2013 · 4 comments
Closed

scala now thinks every exception is polymorphic #7107

scabug opened this issue Feb 9, 2013 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 9, 2013

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.
@scabug
Copy link
Author

scabug commented Feb 9, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7107?orig=1
Reporter: @paulp

@scabug
Copy link
Author

scabug commented Feb 9, 2013

@gkossakowski said:
I'm ont it.

@scabug
Copy link
Author

scabug commented Feb 11, 2013

@gkossakowski said:
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.

@scabug
Copy link
Author

scabug commented Feb 26, 2013

@gkossakowski said:
Fixed by scala/scala#2117

@scabug scabug closed this as completed Feb 26, 2013
@scabug scabug added the critical label Apr 7, 2017
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants