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

Incomplete error reporting for "unknown annotation argument name: value" #5182

Closed
scabug opened this issue Nov 13, 2011 · 2 comments
Closed

Comments

@scabug
Copy link

scabug commented Nov 13, 2011

Consider compiling the following code with either 2.9.1 or scala-2.10.0.r25912-b20111031024940

class test {
 @java.lang.Deprecated(qwe = "wer")def ok(q:Int) = 1
 @java.lang.Deprecated("wer")def whereAmI(q:Int) = 1
}

You will get the following messages from compiler:

test.scala:2: error: unknown annotation argument name: qwe
 @java.lang.Deprecated(qwe = "wer")def ok(q:Int) = 1
                           ^
error: unknown annotation argument name: value
two errors found

the first one is ok, but the second doesn't show which line or file it is referring

@scabug
Copy link
Author

scabug commented Nov 13, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5182?orig=1
Reporter: @OlegYch
Affected Versions: 2.9.1, 2.10.0

@scabug
Copy link
Author

scabug commented May 17, 2013

@paulp said:
801eab5501

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