Skip to content
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

Invalid code generated for classes in the empty package #182

Open
raboof opened this issue Jul 12, 2019 · 0 comments
Open

Invalid code generated for classes in the empty package #182

raboof opened this issue Jul 12, 2019 · 0 comments
Labels

Comments

@raboof
Copy link
Contributor

raboof commented Jul 12, 2019

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant