langtools/test/tools/javac/processing/T6920317.java
changeset 13634 91f0b2d4d816
parent 6720 f16f91662ad8
child 14963 974d4423c999
--- a/langtools/test/tools/javac/processing/T6920317.java	Mon Aug 20 21:24:10 2012 +0530
+++ b/langtools/test/tools/javac/processing/T6920317.java	Mon Aug 20 13:50:04 2012 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2012, 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
@@ -156,7 +156,9 @@
         String expect = null;
 
         opts.add("-processorpath");
-        opts.add(System.getProperty("test.classes"));
+        String testClasses = System.getProperty("test.classes");
+        String testClassPath = System.getProperty("test.class.path", testClasses);
+        opts.add(testClassPath);
         opts.add("-processor");
         opts.add(Processor.class.getName());
         opts.add("-proc:only");