Ensure that only real classfile are listed by the FileManager passed to the javac.
1.1 --- a/remoting/server/web/resolve.web.api/src/org/netbeans/modules/jackpot30/resolve/api/Javac.java Fri Nov 30 20:09:11 2012 +0100
1.2 +++ b/remoting/server/web/resolve.web.api/src/org/netbeans/modules/jackpot30/resolve/api/Javac.java Fri Nov 30 22:05:42 2012 +0100
1.3 @@ -57,6 +57,7 @@
1.4 import java.util.Collection;
1.5 import java.util.Collections;
1.6 import java.util.HashMap;
1.7 +import java.util.HashSet;
1.8 import java.util.Iterator;
1.9 import java.util.List;
1.10 import java.util.Map;
1.11 @@ -134,6 +135,8 @@
1.12 }
1.13 }
1.14
1.15 + private static final Set<String> CLASSFILE_EXTENSIONS = new HashSet<String>(Arrays.asList("class", "sig"));
1.16 +
1.17 private static final class FMImpl implements JavaFileManager {
1.18
1.19 private final Collection<org.openide.filesystems.FileObject> classpath;
1.20 @@ -161,7 +164,7 @@
1.21
1.22 if (dirFO != null) {
1.23 for (org.openide.filesystems.FileObject f : dirFO.getChildren()) {
1.24 - if (!f.isData()) continue;
1.25 + if (!f.isData() || !CLASSFILE_EXTENSIONS.contains(f.getExt())) continue;
1.26
1.27 JFOImpl jfo = files.get(f);
1.28