Skip to content

Javadoc html warning when running against JDK 10 #20

Open
@jeremydouglass

Description

Processing library template projects are written against Java 1.8 -- when compiling against JDK 10 javadoc gives a warning about the html format not being specified.

  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [...]
  [javadoc] Constructing Javadoc information...
  [javadoc] javadoc: warning - You have not specified the version of HTML to use.
  [javadoc] The default is currently HTML 4.01, but this will change to HTML5
  [javadoc] in a future release. To suppress this warning, please specify the
  [javadoc] version of HTML used in your documentation comments and to be
  [javadoc] generated by this doclet, using the -html4 or -html5 options.
  [javadoc] Standard Doclet version 10.0.1 

This happens when building on OS X 10.12.6 (default JDK 10). There is a related issue here that lists a fix (for gradle, not ant): gradle/gradle#5891

That fix:

  1. check the java version
  2. set the html flag if it the version > 9.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions