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

ScalaDoc 2.12.3 fails on simple Java class with static Enum/Class in constructor #10509

Closed
bantonsson opened this issue Sep 14, 2017 · 2 comments

Comments

@bantonsson
Copy link

This simple file Broken.java

public class Broken {
    public enum Should {
        Foo
    }

    public static class Work {
    }

    public Broken(Should should, Work work) {
    }
}

Will fail like this

> scaladoc Broken.java
Broken.java:9: error: not found: type Should
    public Broken(Should should, Work work) {
                  ^
Broken.java:9: error: not found: type Work
    public Broken(Should should, Work work) {
                                 ^
model contains 2 documentable templates
two errors found

Works with ScalaDoc 2.11.11

@SethTisue
Copy link
Member

SethTisue commented Sep 14, 2017

workaround:

-    public Broken(Should should, Work work) {
+    public Broken(Broken.Should should, Broken.Work work) {

related: #1211, #1409, #8993

bantonsson added a commit to bantonsson/paradox that referenced this issue Sep 15, 2017
koertkuipers added a commit to tresata-opensource/xgboost that referenced this issue Jun 18, 2019
CodingCat pushed a commit to dmlc/xgboost that referenced this issue Jul 16, 2019
* bump scala to 2.12 which requires java 8 and also newer flink and akka

* put scala version in artifactId

* fix appveyor

* fix for scaladoc issue that looks like scala/bug#10509

* fix ci_build

* update versions in generate_pom.py

* fix generate_pom.py

* apache does not have a download for spark 2.4.3 distro using scala 2.12 yet, so for now i use a tgz i put on s3

* Upload spark-2.4.3-bin-scala2.12-hadoop2.7.tgz to our own S3

* Update Dockerfile.jvm_cross

* Update Dockerfile.jvm_cross
tzulitai added a commit to tzulitai/flink that referenced this issue Jun 2, 2020
…aces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
tzulitai added a commit to tzulitai/flink that referenced this issue Jun 2, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
rmetzger pushed a commit to georyan/flink that referenced this issue Jun 2, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
asfgit pushed a commit to apache/flink that referenced this issue Jun 4, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
asfgit pushed a commit to apache/flink that referenced this issue Jun 4, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
fsk119 pushed a commit to fsk119/flink that referenced this issue Jun 8, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
zhangjun0x01 pushed a commit to zhangjun0x01/flink that referenced this issue Jul 8, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
lin9long pushed a commit to lin9long/myflink that referenced this issue Aug 22, 2020
…nterfaces

This is a similar issue as reported here:
scala/bug#10509.

This seems to be a problem with Scala 2.12.x. The only workaround is to
redundantly add the full-length qualifiers for such interfaces.
@som-snytt
Copy link

Duplicates #8993 et al

@som-snytt som-snytt closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants