Skip to content

Conversation

@elharo
Copy link
Contributor

@elharo elharo commented Oct 24, 2025

No description provided.

@elharo elharo marked this pull request as ready for review October 26, 2025 15:39
@elharo elharo requested review from Copilot and mrglavas October 26, 2025 15:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables doclint checking during Javadoc generation by adding the -Xdoclint:none argument to all javadoc tasks in the Ant build file. It also removes the Java version requirement from the javadocs target description and eliminates an extraneous blank line.

  • Adds -Xdoclint:none argument to five javadoc tasks to suppress documentation linting
  • Updates javadocs target description to remove outdated Java version requirement
  • Removes unnecessary blank line in the build file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +528 to +530
>
<arg value="-Xdoclint:none"/>
</javadoc>
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The indentation of the <arg> element is inconsistent with the surrounding XML structure. The <arg> element should be indented to align with other child elements of the <javadoc> tag. Consider using consistent indentation (typically 2 or 4 spaces per level) throughout all javadoc tasks.

Copilot uses AI. Check for mistakes.
Comment on lines +540 to +542
>
<arg value="-Xdoclint:none"/>
</javadoc>
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The indentation of the <arg> element is inconsistent with the surrounding XML structure. The <arg> element should be indented to align with other child elements of the <javadoc> tag. Consider using consistent indentation (typically 2 or 4 spaces per level) throughout all javadoc tasks.

Copilot uses AI. Check for mistakes.
Comment on lines +552 to +554
>
<arg value="-Xdoclint:none"/>
</javadoc>
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The indentation of the <arg> element is inconsistent with the surrounding XML structure. The <arg> element should be indented to align with other child elements of the <javadoc> tag. Consider using consistent indentation (typically 2 or 4 spaces per level) throughout all javadoc tasks.

Copilot uses AI. Check for mistakes.
Comment on lines +573 to +575
>
<arg value="-Xdoclint:none"/>
</javadoc>
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The indentation of the <arg> element is inconsistent with the surrounding XML structure. The <arg> element should be indented to align with other child elements of the <javadoc> tag. Consider using consistent indentation (typically 2 or 4 spaces per level) throughout all javadoc tasks.

Copilot uses AI. Check for mistakes.
Comment on lines +586 to +588
>
<arg value="-Xdoclint:none"/>
</javadoc>
Copy link

Copilot AI Oct 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The indentation of the <arg> element is inconsistent with the surrounding XML structure. The <arg> element should be indented to align with other child elements of the <javadoc> tag. Consider using consistent indentation (typically 2 or 4 spaces per level) throughout all javadoc tasks.

Copilot uses AI. Check for mistakes.
additionalparam='${additional.param}'
/>
>
<arg value="-Xdoclint:none"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting -Xdoclint:none for javax.xml.*,org.w3c.*,org.xml.* is reasonable but for the packages under org.apache.xerces it should really be -Xdoclint:all (perhaps -Xdoclint:all -Xdoclint:-missing is reasonable).

Also it would be preferable to set the following on the xerces code:

      failonerror='yes'
      failonwarning='yes'

these Javadoc issues can be resolved with minimal effort. A lot of the errors are just invalid html in classes like EncodingMap. As for the warnings, as long as publicly accessible methods have all params and return values documented then it should be acceptable. Potentially failonwarning could be no as long as those things are covered

@elharo
Copy link
Contributor Author

elharo commented Oct 26, 2025

Failing on existing Javadoc errors is a hard no. These problems do not break the build and they should not block shipping. I am unwilling to revert the product to an unshippable state. Feel free to improve things, but we must not break the build.

Right now the build is too noisy. These warnings aren't very significant, sio I don;t them hiding other more serious problems.

@SingingBush
Copy link
Contributor

I'm not suggesting failing builds now. I'm suggesting fixing the problems then merging this.

@SingingBush
Copy link
Contributor

A lot of these doclint issues are gone and some of the remaining ones can probably be tackled fairly easily. One issue that creates a lot of errors is that numerous methods (x19) have been documented with @throws SAXNotRecognizedException when the method in question doesn't actually throw a SAXNotRecognizedException.
Some other make reference to @exception DOMSystemException but DOMSystemException doesn't exist. I had to google search to find a full path of org.w3c.dom.DOMSystemException but it seems that no longer exists or perhaps was renamed to org.w3c.dom.DOMException which does at least exist.

I can make PRs for these problems, after that then there's just a few leftover errors:

  • error: unknown tag: xsl.usage
  • error: no caption for table
  • error: heading used out of sequence: <H3>, compared to implicit preceding heading: <H1>

there's warnings, but that's not so much of a problem. Having failonerror='yes' in the Javadoc would be a good thing

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants