Skip to content

Scaladoc regression, when using java defined annotations #18231

Closed
@WojciechMazur

Description

@WojciechMazur

Based on OpenCB failure in akka/akka-http https://github.com/VirtusLab/community-build3/actions/runs/5557868276/jobs/10152257798

Compiler version

3.3.2-RC
Works in 3.3.1-RC4

Bisect results:
Last good release: 3.3.2-RC1-bin-20230615-916d4e7-NIGHTLY
First bad release: 3.3.2-RC1-bin-20230619-a68568c-NIGHTLY

The commit-based bisect fails due to an errors when publishing compiler

Minimized code

Fails only when compiling with scaladoc, compiles correctly in standard compilation

//> using option -release:8

object Foo {
    @Deprecated
    def foo(): Unit = ???
}

Output

-- Error: main.scala:4:4 -------------------------------------------------------
4 |    @Deprecated
  |    ^^^^^^^^^^^
  |wrong number of arguments at <no phase> for (since: String, forRemoval: Boolean): Deprecated: (Deprecated#<init> : (since: String, forRemoval: Boolean): Deprecated), expected: 2, found: 0
1 error found

Expectation

Should compile

Metadata

Metadata

Labels

area:doctoolarea:tasty-inspectorissues relating to the TASTy inspectoritype:bugregressionThis worked in a previous version but doesn't anymorestat:fixed in nextThe issue was fixed in Next and only still applies to LTS.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions