-
Notifications
You must be signed in to change notification settings - Fork 21
Support forward reference from annotation argument to member of the annotated class. #7014
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7014?orig=1 |
Sebastian Meßmer (smessmer) said: |
Mariusz Sakowski (sakfa) said: |
Francois Armand (fanf) said: |
@adriaanm said: |
@gkossakowski said: |
Francois Armand (fanf) said (edited on Jul 16, 2013 11:47:37 AM UTC): All in all, I prefered the past behaviour, with hundreds of assert error lines in the log. Our build output were crap, but actually could build the project... |
Sonnenschein (sonnenschein) said: For the time being, I decided to package my single layer dealing with LDAP into a separate JAR which I than use as an unmanaged library. Since the rest doesn't need a dependency to UnboundID-SDK, I can keep out the annoying noise from the rest. Peter |
Jun Yamog (jkyamog) said: |
@adriaanm said: Not sure what we can do for this in 2.10, as this is now a maintenance release. Happy to take PRs. |
@adriaanm said: |
@adriaanm said (edited on Aug 13, 2013 10:18:44 PM UTC): |
@retronym said:
|
Francois Armand (fanf) said: Thanks! |
Hendy Irawan (ceefour) said: |
Does anyone know how to mute this class of warnings? Using a protoc based library that I cannot change and it is very noisy, with dozens of warnings. |
can you post a minimized reproducer? |
@lrytz https://github.com/everson/scala-7014-issue Note that this is literally just reproducing OP's problem. The issue I am currently facing is of similar class, but depending on a library from another team internal to my company. I had to remove Additionally, the code has dozens of instances of this issue, becoming very annoying. |
@everson are you familiar with |
Rigth, |
Sorry it took this long to respond. I wasn't familiar. Thank you both @SethTisue @lrytz! |
[Warn] : While parsing annotations in .../mongo-java-driver/driver-core/build/libs/mongodb-driver-core-5.5.0-SNAPSHOT.jar(com/mongodb/lang/Nullable.class), could not find MAYBE in enum <none>. This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (scala/bug#7014).
`[Warn] : While parsing annotations in .../mongo-java-driver/driver-core/build/libs/mongodb-driver-core-5.5.0-SNAPSHOT.jar(com/mongodb/lang/Nullable.class), could not find MAYBE in enum <none>. This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (scala/bug#7014).`
With Scalac 2.10, the use of any objects, class or method annotaded with the com.unboundid.util.ThreadSafetyLevel leads to java.lang.AssertionError.
For example, the following file Test.scala:
Leads to :
ThreadSafety.java source here: http://ldap-sdk.svn.sourceforge.net/viewvc/ldap-sdk/trunk/src/com/unboundid/util/ThreadSafety.java?revision=410&view=markup
Link to unboundid-ldapsdk-2.3.1.jar: https://www.unboundid.com/products/ldap-sdk/files/unboundid-ldapsdk-2.3.1-se.zip
That seems to be linked to the following comment: https://github.com/scala/scala/blob/master/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala#L1033
The text was updated successfully, but these errors were encountered: