JavaFileManager has some new methods whose default implementation is to
throw UOE.
Are you providing your own full custom file manager? If you are, and
you are using it in a module-oriented compilation (i.e. -target 9) then
you need to provide the new methods.
-- Jon
On 10/08/2015 02:16 PM, Keimpe Bronkhorst wrote:
I'm running with jigsaw build 1.9.0-ea-jigsaw-nightly-h3477-20150929-b83.
I'm trying to do a JSR199 compilation using
ToolProvider.getSystemJavaCompiler(), but the compile fails
immediately with the exception below. I don't have access to the
sources of this JDK. Does somebody know what I'm doing wrong?
Caused by: java.lang.UnsupportedOperationException
at
javax.tools.JavaFileManager.listModuleLocations([email protected]/JavaFileManager.java:436)
at
com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.listModuleLocations([email protected]/ClientCodeWrapper.java:387)
at
com.sun.tools.javac.code.ModuleFinder$ModuleLocationIterator.hasNext([email protected]/ModuleFinder.java:129)
at
com.sun.tools.javac.code.ModuleFinder.scanModulePath([email protected]/ModuleFinder.java:242)
at
com.sun.tools.javac.code.ModuleFinder.findAllModules([email protected]/ModuleFinder.java:178)
at
com.sun.tools.javac.comp.Modules.getUnnamedModuleCompleter([email protected]/Modules.java:617)
at
com.sun.tools.javac.comp.Modules.setCompilationUnitModules([email protected]/Modules.java:306)
at
com.sun.tools.javac.comp.Modules.enter([email protected]/Modules.java:174)
at
com.sun.tools.javac.main.JavaCompiler.initModules([email protected]/JavaCompiler.java:1040)
at
com.sun.tools.javac.main.JavaCompiler.initModules([email protected]/JavaCompiler.java:1036)
at
com.sun.tools.javac.main.JavaCompiler.compile([email protected]/JavaCompiler.java:924)
at
com.sun.tools.javac.api.JavacTaskImpl$1.call([email protected]/JavacTaskImpl.java:97)
at
com.sun.tools.javac.api.JavacTaskImpl$1.call([email protected]/JavacTaskImpl.java:93)
at
com.sun.tools.javac.api.JavacTaskImpl.handleExceptions([email protected]/JavacTaskImpl.java:128)
at
com.sun.tools.javac.api.JavacTaskImpl.doCall([email protected]/JavacTaskImpl.java:93)
at
com.sun.tools.javac.api.JavacTaskImpl.call([email protected]/JavacTaskImpl.java:87)
Keimpe Bronkhorst
JDeveloper