langtools/test/tools/javac/api/T6397104.java
changeset 36526 3b41f1c69604
parent 30730 d3ce7619db2c
child 42261 bb52b5514ad5
--- a/langtools/test/tools/javac/api/T6397104.java	Tue Mar 15 13:48:30 2016 -0700
+++ b/langtools/test/tools/javac/api/T6397104.java	Thu Mar 17 19:04:28 2016 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2016, 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
@@ -61,15 +61,22 @@
         if (!fileObjectFile.equals(expectedFile))
             throw new AssertionError("Expected " + expectedFile +
                                      ", got " + fileObjectFile);
-        System.out.format("OK: (%s, %s) => %s%n", siblingFile, relName, fileObjectFile);
+        System.err.format("OK: (%s, %s) => %s%n", siblingFile, relName, fileObjectFile);
     }
 
     void test(boolean hasLocation, File siblingFile, String relName, String expectedPath)
         throws Exception
     {
+        System.err.format("test: hasLocation:%s, siblingFile:%s, relName:%s, expectedPath:%s%n",
+                hasLocation, siblingFile, relName, expectedPath);
         try (StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null)) {
             if (hasLocation) {
                 for (Location location : StandardLocation.values()) {
+                    System.err.format("  location:%s, moduleLocn:%b%n",
+                        location, location.isModuleLocation());
+                    if (location.isModuleLocation()) {
+                        continue;
+                    }
                     fm.setLocation(location, Arrays.asList(new File(".")));
                     test(fm, location, siblingFile, relName, expectedPath);
                 }