Mercurial > hg > openjdk > icedtea > jdk7 > langtools
changeset 1070:fb7fb3071b64 icedtea-2.0-branchpoint
PR767: Annotation Processing Filer.getResource() always throws FileNotFoundException
author | andrew |
---|---|
date | Fri, 29 Jul 2011 01:06:18 +0100 |
parents | 0df09c966a29 |
children | 9b85f1265346 |
files | src/share/classes/com/sun/tools/javac/processing/JavacFiler.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/processing/JavacFiler.java Mon Jul 11 22:05:41 2011 +0100 +++ b/src/share/classes/com/sun/tools/javac/processing/JavacFiler.java Fri Jul 29 01:06:18 2011 +0100 @@ -455,9 +455,8 @@ // TODO: Only support reading resources in selected output // locations? Only allow reading of non-source, non-class // files from the supported input locations? - FileObject fileObject = fileManager.getFileForInput(location, - pkg.toString(), - relativeName.toString()); + FileObject fileObject = fileManager.getFileForOutput(location, + pkg.toString(), relativeName.toString(), null); if (fileObject == null) { String name = (pkg.length() == 0) ? relativeName.toString() : (pkg + "/" + relativeName);