Bug 25246 filecomment template does not accept '//' comments [wizards]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
/**
	 * Hook mathod that gets called from <code>createType</code> to retrieve 
	 * a file comment. This default implementation returns the content of the 
	 * 'filecomment' template.
	 * 
	 * @return the file comment or <code>null</code> if a file comment 
	 * is not desired
	 */		
	protected String getFileComment(ICompilationUnit parentCU) {
		if (CodeGenerationPreferencePage.doFileComments()) {
			String template= getTemplate("filecomment", parentCU, 0); 
			if (isValidComment(template)) {
				return template;
			}			
		}
		return null;
	}
	
	private boolean isValidComment(String template) {
		IScanner scanner= ToolFactory.createScanner(true, false, false, false);
		scanner.setSource(template.toCharArray());
		try {
			int next= scanner.getNextToken();
			while (next == ITerminalSymbols.TokenNameCOMMENT_JAVADOC || next == ITerminalSymbols.TokenNameCOMMENT_BLOCK) {
				next= scanner.getNextToken();
			}
			return next == ITerminalSymbols.TokenNameEOF;
		} catch (InvalidInputException e) {
		}
		return false;