Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8258443: doclint should be service-loaded with system class loader
Reviewed-by: alanb
  • Loading branch information
jonathan-gibbons committed Dec 21, 2020
1 parent 4e8338e commit 8da7c58
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -50,7 +50,7 @@ public abstract class DocLint implements Plugin {

public static synchronized DocLint newDocLint() {
if (docLintProvider == null) {
docLintProvider = ServiceLoader.load(DocLint.class).stream()
docLintProvider = ServiceLoader.load(DocLint.class, ClassLoader.getSystemClassLoader()).stream()
.filter(p_ -> p_.get().getName().equals("doclint"))
.findFirst()
.orElse(new ServiceLoader.Provider<>() {
Expand Down

1 comment on commit 8da7c58

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.