Skip to content

Invalid code generated for classes in the empty package #182

Open

Description

@raboof

https://github.com/GeTOUO/genjavadoc-error-demo at 3c6d2fae3229ca7b84fc21345e8dd6241b27a1d2

/**
  * test model
  * @param field some field des
  */
case class ScalaModel(field: String)

produced alongside the ScalaModel also a ScalaModel$:

public  class ScalaModel$ extends scala.runtime.AbstractFunction1<java.lang.String, <empty>.ScalaModel> implements scala.Serializable {
  /**
   * Static reference to the singleton instance of this Scala object.
   */
  public static final ScalaModel$ MODULE$ = null;
  public   ScalaModel$ ()  { throw new RuntimeException(); }
}

Here the 'empty' package makes it into the generic type, which is of course invalid.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions