JavaFileManager.getModuleLocation() problem
Jonathan Gibbons
jonathan.gibbons at oracle.com
Tue Jul 26 19:30:29 UTC 2016
SOURCE_PATH is normally a package-oriented (JDK-8 style) path. It's not
a module-oriented path, so generally, you won't find modules on it.
You probably want to use MODULE_SOURCE_PATH.
-- Jon
On 07/26/2016 06:59 AM, Konstantin Barzilovich wrote:
> Hello,
>
> I try to use method getModuleLocation() like this:
>
> JavaFileManager.Location location =
> ToolProvider.getSystemJavaCompiler().getStandardFileManager(null,
> null, null).getModuleLocation(StandardLocation.SOURCE_PATH, "myModule");
>
> But variable 'location' is always null.
> I expected UnsupportedOperationException or some result, but not null.
> What am I doing wrong?
>
More information about the jigsaw-dev
mailing list