Skip to content

Fix build failure with jdk 23 #373

Closed
Closed

Description

@olamy

Affected version

3.10.x

Bug description

build failing with jdk 23

[ERROR] Failures: 
[ERROR]   JavadocJarMojoTest.testDefaultConfig:99
[ERROR]   JavadocReportTest.testDefaultConfiguration:318 
Expecting path:
  /home/olamy/dev/sources/maven/plugins/reporting/maven-javadoc-plugin/target/test/unit/default-configuration/target/site/apidocs/stylesheet.css
to exist (symbolic links were followed).
[ERROR]   JavadocReportTest.testOptionsUmlautEncoding:605 
Expecting path:
  /home/olamy/dev/sources/maven/plugins/reporting/maven-javadoc-plugin/target/test/unit/optionsumlautencoding-test/target/site/apidocs/stylesheet.css
to exist (symbolic links were followed).
[ERROR]   JavadocReportTest.testQuotedPath:559 
Expecting path:
  /home/olamy/dev/sources/maven/plugins/reporting/maven-javadoc-plugin/target/test/unit/quotedpath'test/target/site/apidocs/stylesheet.css
to exist (symbolic links were followed).
[ERROR] Errors: 
[ERROR]   JavadocReportTest.testStylesheetfile:1158->readFile:214->readFile:228 » NoSuchFile /home/olamy/dev/sources/maven/plugins/reporting/maven-javadoc-plugin/target/test/unit/stylesheetfile-test/target/site/apidocs/stylesheet.css
[INFO] 
[ERROR] Tests run: 74, Failures: 4, Errors: 1, Skipped: 0

due to new fonts added per default with JDK 23. see #369

Activity

  1. self-assigned this
    on May 26, 2025
  2. added theissue type on May 26, 2025
  3. added a commit that references this issue on May 28, 2025
  4. olamy commented on May 28, 2025

    @olamy
    MemberAuthor

    fixed with #374

  5. joakime commented on May 28, 2025

    @joakime

    @olamy did you notice the warning?

    Warning:  Javadoc Warnings
    Warning: [WARNING] warning: The -footer option is no longer supported and will be ignored.
    Warning:  It may be removed in a future release.
    
  6. olamy commented on May 28, 2025

    @olamy
    MemberAuthor

    @olamy did you notice the warning?

    Warning:  Javadoc Warnings
    Warning: [WARNING] warning: The -footer option is no longer supported and will be ignored.
    Warning:  It may be removed in a future release.
    

    this was happening for osx using jdk 23 adoptopenjdk and has generated a segfault.
    I have disable this from the build matrix.

  7. joakime commented on May 28, 2025

    @joakime

    @olamy you missed the point of that warning, it's not architecture specific, and it has no connection on the segfault in that specific build.

    The -footer option is deprecated.

    That same warning is present on the green builds. - https://github.com/apache/maven-javadoc-plugin/actions/runs/15291408104/job/43011765697

    https://docs.oracle.com/en/java/javase/23/docs/specs/man/javadoc.html

    -footer html-code
    This option is no longer supported and reports a warning.

    It doesn't do anything right now, and may be removed in a future release.
    To me, that means the <footer> configuration in maven-javadoc-plugin is also deprecated, or at least deprecated based on the JDK version you are using with the maven-javadoc-plugin.

  8. olamy commented on May 28, 2025

    @olamy
    MemberAuthor

    Oh I see, good point. I was only looking at the output of javadoc -h, which doesn't mention that.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions