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

This comment has been minimized.

Copy link
Author

@scabug 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

This comment has been minimized.

Copy link
Author

@scabug scabug commented Oct 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.