changeset 2366:3d8d9f0df999

8039251: Test tools/javadoc/6964914/TestStdDoclet.java fails Reviewed-by: jjg
author ksrini
date Wed, 16 Apr 2014 18:36:43 -0700
parents 6207608205b8
children 6acecb34d1bc
files test/tools/javadoc/6964914/TestStdDoclet.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javadoc/6964914/TestStdDoclet.java	Wed Apr 16 16:17:09 2014 -0700
+++ b/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())