langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
equal
deleted
inserted
replaced
950 |
950 |
951 @Override @DefinedBy(Api.COMPILER) |
951 @Override @DefinedBy(Api.COMPILER) |
952 public Location getLocationForModule(Location location, String moduleName) throws IOException { |
952 public Location getLocationForModule(Location location, String moduleName) throws IOException { |
953 checkModuleOrientedOrOutputLocation(location); |
953 checkModuleOrientedOrOutputLocation(location); |
954 nullCheck(moduleName); |
954 nullCheck(moduleName); |
|
955 if (location == SOURCE_OUTPUT && getSourceOutDir() == null) |
|
956 location = CLASS_OUTPUT; |
955 return locations.getLocationForModule(location, moduleName); |
957 return locations.getLocationForModule(location, moduleName); |
956 } |
958 } |
957 |
959 |
958 @Override @DefinedBy(Api.COMPILER) |
960 @Override @DefinedBy(Api.COMPILER) |
959 public <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service) throws IOException { |
961 public <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service) throws IOException { |