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

false positive "you must write the annotation class in Java" warning in "sbt doc" #10134

Open
scabug opened this Issue Jan 3, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@scabug
Copy link

scabug commented Jan 3, 2017

A.scala

object A

Row.java

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface Row {
  String value() default "";
}

build.sbt

scalaVersion := "2.12.1"

execute "sbt doc"

[warn] Row.java:5: Implementation restriction: subclassing Classfile does not
[warn] make your annotation visible at runtime.  If that is what
[warn] you want, you must write the annotation class in Java.
[warn] public @interface Row {
[warn]                   ^
model contains 3 documentable templates
[warn] one warning found
[info] Main Scala API documentation successful.
@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jan 3, 2017

Imported From: https://issues.scala-lang.org/browse/SI-10134?orig=1
Reporter: kenji yoshida
Affected Versions: 2.12.1
See #6991

@KarelCemus

This comment has been minimized.

Copy link

KarelCemus commented Sep 5, 2017

Affects also Scala 2.12.3

@SethTisue SethTisue added this to the Backlog milestone Sep 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment