Skip to content

Please support @SuppressWarnings(Array("unchecked")) #3602

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

Closed
scabug opened this issue Jun 25, 2010 · 2 comments
Closed

Please support @SuppressWarnings(Array("unchecked")) #3602

scabug opened this issue Jun 25, 2010 · 2 comments

Comments

@scabug
Copy link

scabug commented Jun 25, 2010

scalac does not appear to honor Java 5 @SuppressWarnings annotations, even where it makes sense, notably @SuppressWarnings(Array("unchecked")).

Unchecked warnings are helpful, and using @SuppressWarnings in this way is basically a declaration that "I know what I'm doing" for a particular method/class/object/trait that intentionally does things erasure makes unsafe, without disabling unchecked warnings everywhere.

@scabug
Copy link
Author

scabug commented Jun 25, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3602?orig=1
Reporter: Alex Hvostov (argv)

@scabug
Copy link
Author

scabug commented Jun 26, 2010

@paulp said:
Duplicate of (wontfix) #1781.

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

1 participant