lightbend / genjavadoc

A compiler plugin for generating doc’able Java source from Scala source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

genjavadoc produces static public abstract methods

eed3si9n opened this issue · comments

Ref akka/akka#26050
Ref akka/akka#26057

steps

Given https://github.com/akka/akka/blob/v2.5.18/akka-actor-typed/src/main/scala/akka/actor/typed/Props.scala

package akka.actor.typed

abstract class Props private[akka] () extends Product with Serializable {
  private[akka] def next: Props
}

sealed abstract class DispatcherSelector extends Props

problem

It seems like sbt-unidoc is currently producing DispatcherSelector.java:34:

static public abstract  akka.actor.typed.Props next ()  ;

sbt 1.2.7's Javadoc is no longer able to compile this.

expectations

Produce valid Java methods, for example without static modifier.