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
public void setName(String name) {
		fName= new String(name);
	}
			
	/**
	 * Returns the name of the template.
	 */
	public String getName() {
		return new String(fName);
	}
	/**
	 * Returns the image of the template.
	 */	
	public Image getImage() {
		if (fContext.equals("javadoc") && fName.startsWith("<"))  
			return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_HTMLTAG);
		else
			return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_TEMPLATE);
	}
	/**
	 * Sets the pattern of the template.
	 */
	public void setPattern(String pattern) {
		fPattern= new String(pattern);
	}
		
	/**
	 * Returns the template pattern.
	 */
	public String getPattern() {