Overriding isSameFile method in Dew Filemanager. It was not needed because until now just one class was compiled.
1.1 --- a/dew/src/main/java/org/apidesign/bck2brwsr/dew/Compile.java Thu Mar 21 17:29:40 2013 +0100
1.2 +++ b/dew/src/main/java/org/apidesign/bck2brwsr/dew/Compile.java Tue Apr 02 15:40:51 2013 +0200
1.3 @@ -158,7 +158,20 @@
1.4
1.5 return null;
1.6 }
1.7 -
1.8 +
1.9 + @Override
1.10 + public boolean isSameFile(FileObject a, FileObject b) {
1.11 + if (a == null || b == null) {
1.12 + throw new NullPointerException();
1.13 + }
1.14 + if (!(a instanceof SimpleJavaFileObject)) {
1.15 + throw new IllegalArgumentException("Not supported: " + a);
1.16 + }
1.17 + if (!(b instanceof SimpleJavaFileObject)) {
1.18 + throw new IllegalArgumentException("Not supported: " + b);
1.19 + }
1.20 + return a.equals(b);
1.21 + }
1.22 };
1.23
1.24 ToolProvider.getSystemJavaCompiler().getTask(null, jfm, this, /*XXX:*/Arrays.asList("-source", "1.7", "-target", "1.7"), null, Arrays.asList(file)).call();