Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-10134

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.12.1
    • Fix Version/s: None
    • Environment:

      Description

      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.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kenji yoshida kenji yoshida
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: