Bug 23968 Abusive check on task tags
2.1M1 Java UI ensures that task tags are valid Java identifiers. Why is it so ? JDT/Core supports any type of tags. In particular, "TODO:" should work fine, and was one of the mentionned tags on the original feature request.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompilerPreferencePage.java
}
		return new StatusInfo();
	}
	
	private IStatus validateTaskTags() {
		String text= (String) fWorkingValues.get(PREF_COMPILER_TASK_TAGS);
		
		IWorkspace workspace= ResourcesPlugin.getWorkspace();
		String[] tags= getFilters(text);
		for (int i= 0; i < tags.length; i++) {
			IStatus status= JavaConventions.validateIdentifier(tags[i]);
			if (status.matches(IStatus.ERROR)) {
				String message= JavaUIMessages.getFormattedString("CompilerPreferencePage.task.invalidsegment.error", status.getMessage()); 
				return new StatusInfo(IStatus.ERROR, message);
			}
		}
		return new StatusInfo();
	}	
	
	private String[] getFilters(String text) {
		StringTokenizer tok= new StringTokenizer(text, ","); 
		int nTokens= tok.countTokens();
		String[] res= new String[nTokens];
		for (int i= 0; i < res.length; i++) {
			res[i]= tok.nextToken();
		}
		return res;
	}	
	/*
	 * Update the compliance controls' enable state