< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/api/ClientCodeWrapper.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 44,54 **** import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Objects; - import java.util.ServiceLoader; import java.util.Set; import javax.lang.model.element.Modifier; import javax.lang.model.element.NestingKind; import javax.tools.Diagnostic; --- 44,53 ----
*** 416,436 **** @Override public String toString() { return wrappedToString(getClass(), clientJavaFileManager); } - - @Override @DefinedBy(Api.COMPILER) - public <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service) throws IOException { - try { - return clientJavaFileManager.getServiceLoader(location, service); - } catch (ClientCodeException e) { - throw e; - } catch (RuntimeException | Error e) { - throw new ClientCodeException(e); - } - } } protected class WrappedStandardJavaFileManager extends WrappedJavaFileManager implements StandardJavaFileManager { WrappedStandardJavaFileManager(StandardJavaFileManager clientJavaFileManager) { --- 415,424 ----
*** 577,598 **** } catch (ClientCodeException e) { throw e; } catch (RuntimeException | Error e) { throw new ClientCodeException(e); } - } - - @Override @DefinedBy(Api.COMPILER) - public void setLocationForModule(Location location, String moduleName, Collection<? extends Path> paths) throws IOException { - try { - System.out.println("invoking wrapped setLocationForModule"); - ((StandardJavaFileManager)clientJavaFileManager).setLocationForModule(location, moduleName, paths); - } catch (ClientCodeException e) { - throw e; - } catch (RuntimeException | Error e) { - throw new ClientCodeException(e); - } } } protected class WrappedFileObject implements FileObject { protected FileObject clientFileObject; --- 565,574 ----
< prev index next >