Skip to content

Commit d116f40

Browse files
committed
Fix issue-3: don't call 'JavaModel.flushExternalFileCache'
In the original Eclipse JavaBuilder class (in org.eclipse.jdt.internal.core.builder) the call to 'JavaModel.flushExternalFileCache()' was removed, but not the copy of that class in 'net.sf.j2s.core.builder'.
1 parent 31f4d4b commit d116f40

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/builder/JavaBuilder.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,6 @@ private int initializeBuilder(int kind, boolean forBuild) throws CoreException {
614614
// Flush the existing external files cache if this is the beginning of a build cycle
615615
String projectName = this.currentProject.getName();
616616
if (builtProjects == null || builtProjects.contains(projectName)) {
617-
try {
618-
Method method = JavaModel.class.getMethod("flushExternalFileCache", new Class[] { Void.class });
619-
if (method != null) {
620-
method.invoke(JavaModel.class, new Object[0]);
621-
}
622-
} catch (Throwable e) {
623-
e.printStackTrace();
624-
}
625-
//JavaModel.flushExternalFileCache();
626617
builtProjects = new ArrayList();
627618
}
628619
builtProjects.add(projectName);

0 commit comments

Comments
 (0)