--- a/test/langtools/jdk/javadoc/doclet/testDocRootLink/TestDocRootLink.java Fri Jan 18 13:49:45 2019 -0500
+++ b/test/langtools/jdk/javadoc/doclet/testDocRootLink/TestDocRootLink.java Fri Jan 18 11:26:30 2019 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -37,6 +37,14 @@
public static void main(String... args) throws Exception {
TestDocRootLink tester = new TestDocRootLink();
+
+ // The test files intentionally contain examples of links that should
+ // or should not be affected by the -Xdocrootparent option, and the
+ // results are checked explicitly; so, disable the automatic link
+ // checker to prevent spurious "missing files" errors from some of
+ // these links.
+ tester.setAutomaticCheckLinks(false);
+
tester.runTests();
}