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

test "neg\unchecked-abstract.scala" fails on Windows #6451

Closed
scabug opened this issue Sep 29, 2012 · 2 comments
Closed

test "neg\unchecked-abstract.scala" fails on Windows #6451

scabug opened this issue Sep 29, 2012 · 2 comments

Comments

@scabug
Copy link

scabug commented Sep 29, 2012

Because attempting to create a file named "Con" on Windows throws an IOException (confusion with the "Con"sole device).

The culprit:

trait Con[-X]  // <- the WinNT filesystem refuses to create `Con.class`
trait Inv[X]
trait Cov[+X]

Part of the stacktrace:

 [partest] Exception in thread "bcode-typer" java.io.IOException: The system cannot find the file specified
 [partest]     at java.io.WinNTFileSystem.createFileExclusively(Native Method)
 [partest]     at java.io.File.createNewFile(Unknown Source)
 [partest]     at scala.reflect.io.AbstractFile.fileOrSubdirectoryNamed(AbstractFile.scala:235)
 [partest]     at scala.reflect.io.AbstractFile.fileNamed(AbstractFile.scala:246)

The fix involves renaming Con in both neg/unchecked-abstract.scala and neg/unchecked-abstract.check

@scabug
Copy link
Author

scabug commented Sep 29, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6451?orig=1
Reporter: @magarciaEPFL
Affected Versions: 2.10.0
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Oct 6, 2012

@magarciaEPFL said:
scala/scala#1451

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