changeset 3370:755579d808dc

add missing methods in ForwardingFileManager
author alundblad
date Thu, 05 Nov 2015 10:49:06 -0800
parents 056daf65e292
children 76aeac001089
files src/java.compiler/share/classes/javax/tools/ForwardingJavaFileManager.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.compiler/share/classes/javax/tools/ForwardingJavaFileManager.java	Sun Nov 01 20:05:55 2015 -0800
+++ b/src/java.compiler/share/classes/javax/tools/ForwardingJavaFileManager.java	Thu Nov 05 10:49:06 2015 -0800
@@ -28,6 +28,7 @@
 import java.io.IOException;
 import java.util.Iterator;
 import java.util.Objects;
+import java.util.ServiceLoader;
 import java.util.Set;
 import javax.tools.JavaFileObject.Kind;
 
@@ -164,10 +165,18 @@
         fileManager.close();
     }
 
+    public Location getModuleLocation(Location location, String moduleName) throws IOException {
+        return fileManager.getModuleLocation(location, moduleName);
+    }
+
     public Location getModuleLocation(Location location, JavaFileObject fo, String pkgName) throws IOException {
         return fileManager.getModuleLocation(location, fo, pkgName);
     }
 
+    public <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service) throws  IOException {
+        return fileManager.getServiceLoader(location, service);
+    }
+
     public String inferModuleName(Location location) throws IOException {
         return fileManager.inferModuleName(location);
     }