8039251: Test tools/javadoc/6964914/TestStdDoclet.java fails
authorksrini
Wed, 16 Apr 2014 18:36:43 -0700
changeset 23972 af37c1dbcb88
parent 23971 f5ff1f5a8dee
child 23973 4b5f3a297142
8039251: Test tools/javadoc/6964914/TestStdDoclet.java fails Reviewed-by: jjg
langtools/test/tools/javadoc/6964914/TestStdDoclet.java
--- a/langtools/test/tools/javadoc/6964914/TestStdDoclet.java	Wed Apr 16 16:17:09 2014 -0700
+++ b/langtools/test/tools/javadoc/6964914/TestStdDoclet.java	Wed Apr 16 18:36:43 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, 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
@@ -57,6 +57,7 @@
         Process p = new ProcessBuilder()
             .command(javadoc.getPath(),
                 "-J-Xbootclasspath:" + System.getProperty("sun.boot.class.path"),
+                "-classpath", ".", // insulates us from ambient classpath
                 "-Xdoclint:none",
                 "-package",
                 new File(testSrc, thisClassName + ".java").getPath())