8163190: Clarify JavaFileManager use of \"module location\"

Reviewed-by: jlahoda
This commit is contained in:
Jonathan Gibbons 2016-11-16 12:12:02 -08:00
parent f742ef0ed0
commit c7374cd58f
20 changed files with 214 additions and 117 deletions

View file

@ -170,7 +170,7 @@ public class DetectMutableStaticFields {
ConstantPoolException,
InvalidDescriptor {
JavaFileManager.Location location =
fm.getModuleLocation(StandardLocation.SYSTEM_MODULES, moduleName);
fm.getLocationForModule(StandardLocation.SYSTEM_MODULES, moduleName);
if (location == null)
throw new AssertionError("can't find module " + moduleName);