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

[fix][doc] ConnectorDocGenerator support Java 9+ #20100

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

tisonkun
Copy link
Member

Java 9 changes ThreadContextClassLoader and SystemClassLoader to AppClassLoader from URLClassLoader.

We should use java.class.path instead to get the related URLs.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun requested review from eolivelli and nodece April 14, 2023 08:41
@tisonkun tisonkun self-assigned this Apr 14, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 14, 2023
required = false,
defaultValue = "",
help = "The SSL config for elastic search."
)
private ElasticSearchSslConfig ssl = new ElasticSearchSslConfig();
Copy link
Member Author

Choose a reason for hiding this comment

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

Nested configs should be supported to generate configs properly. But I'd like to postpone it to a follow-up. Printing an empty string doesn't hurt and no regression here.

@tisonkun tisonkun changed the title [fix][tool] ConnectorDocGenerator support Java 9+ [fix][doc] ConnectorDocGenerator support Java 9+ Apr 14, 2023
Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

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

LGTM

@tisonkun
Copy link
Member Author

Merging...

@tisonkun tisonkun merged commit b7eab94 into apache:master Apr 17, 2023
@tisonkun tisonkun deleted the ConnectorDocGenerator branch April 17, 2023 02:59
@poorbarcode poorbarcode added this to the 3.1.0 milestone May 7, 2023
poorbarcode pushed a commit that referenced this pull request May 7, 2023
Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit b7eab94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants