Bug 5095 template: toarray incorrect
its defintion should be: (${type}[]) ${collection}.toArray(new ${type}[${collection}.size()]); rather than (${type}[]) ${collection}.toArray(new ${type}[${collection}]);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/Template.java
private String fName;
	private String fDescription;
	private String fContext;
	private String fPattern;
	private boolean fEnabled= true;
	public Template() {
		this("", "", "", ""); 
	}
	/**
	 * Creates a template.
	 * @param name        the name of the template.
	 * @param description the description of the template.
	 * @param context     the context in which the template can be applied.
	 * @param pattern     the template pattern.
	 */		
	public Template(String name, String description, String context, String pattern) {
		fName= new String(name);
		fDescription= new String(description);
		fContext= new String(context);
		fPattern= new String(pattern);
	}