We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.0.0-RC1 and 3.0.0-RC2-bin-20210219-aa7c21e-NIGHTLY
3.0.0-RC1
3.0.0-RC2-bin-20210219-aa7c21e-NIGHTLY
import static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import java.lang.annotation.Retention; import java.util.List; @Target({ TYPE_USE }) @Retention(RUNTIME) @interface NotNull {} interface A { public List<@NotNull String> x(); }
class B
[error] -- Error: /home/runner/work/TYPE_USE-annotation-scala3/TYPE_USE-annotation-scala3/src/main/scala/A.java:12:14 [error] 12 | public List<@NotNull String> x(); [error] | ^^^^ [error] | illegal start of type [error] -- Error: /home/runner/work/TYPE_USE-annotation-scala3/TYPE_USE-annotation-scala3/src/main/scala/A.java:12:34 [error] 12 | public List<@NotNull String> x(); [error] | ^ [error] | null expected but ';' found. [error] two errors found
success compile
success with Scala 2.13.4, 2.12.13
The text was updated successfully, but these errors were encountered:
scala/scala@7e57bcc
Sorry, something went wrong.
Merge pull request #11525 from Kordyjan/jsr308
9373ce6
Fix #11490: Support Java type annotation parsing
Kordyjan
Successfully merging a pull request may close this issue.
Compiler version
3.0.0-RC1
and3.0.0-RC2-bin-20210219-aa7c21e-NIGHTLY
Minimized code
A.java
B.scala
Output
Expectation
success compile
Note
success with Scala 2.13.4, 2.12.13
The text was updated successfully, but these errors were encountered: