Bug 423721 SWT workspace is full of SWT tools errors
1.Pull the latest SWT source code. 2.Enable SWT Tools > report 32/64 bit problems. 3.Rebuild the project. Project is filled with errors: [32/64] Syntax error, annotations are only available if source level is 1.5 or greater The problem is in the SWT tools. There are more than 900 errors now in the workspace and its easy to miss any valid 32/64 bit errors because of this. We need to fix the tools before making any Java 1.5 language changes to the SWT source code.
bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java
return str.toString();
	} catch (IOException e) {
		throw new RuntimeException("File not found:" + file, e);
	}
}
void build(IJavaProject project, String root) throws CoreException {
	PrintWriter writer = null;
	try {
		StringBuffer sourcePath = new StringBuffer(), cp = new StringBuffer();
		IClasspathEntry[] entries = project.getResolvedClasspath(true);
		for (int i = 0; i < entries.length; i++) {
			IClasspathEntry entry = entries[i]; 
			String path = entry.getPath().toPortableString();
			if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
				if (path.startsWith(pluginDir)) {
					if (sourcePath.length() > 0) sourcePath.append(File.pathSeparatorChar);
					String dir = root + path.substring(pluginDir.length());
					sourcePath.append(dir);
				}
			} else {
				if (cp.length() > 0) cp.append(File.pathSeparator);
				cp.append(path);
			}
		}
		String bin = root + "/bin";
		if (cp.length() > 0) cp.append(File.pathSeparator);
		cp.append(bin);
		ArrayList<String> args = new ArrayList<String>();
		args.addAll(Arrays.asList(new String[]{
			"-nowarn",