Bug 76649 New 'Inexact Argument for Varargs' compiler option
* COMPILER / Reporting Inexact Argument for Varargs Method/Constructor Invocation * When enabled, the compiler will issue an error or a warning whenever a varargs method/constructor is invoked with an inexact * argument (e.g. Class.getMethod(String name, Class ... args ) invoked with arguments ("foo", null)) * with inexact type match. * - option id: "org.eclipse.jdt.core.compiler.problem.inexactVarargsArgument" * - possible values: { "error", "warning", "ignore" } * - default: "warning" To be added to the 1.5 tag on the compiler
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompilerConfigurationBlock.java
Group group= new Group(compComposite, SWT.NONE);
		group.setText(PreferencesMessages.getString("CompilerConfigurationBlock.compliance.group.label")); 
		group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		group.setLayout(layout);
	
		String label= PreferencesMessages.getString("CompilerConfigurationBlock.compiler_compliance.label"); 
		final Combo compliance= addComboBox(group, label, PREF_COMPLIANCE, values345, values345Labels, 0);
		compliance.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				if ("1.5".equals(compliance.getText())) { 
					MessageDialog.openWarning(compliance.getShell(), 
						"Compiler Settings",  
						"Please note that the J2SE 5.0 support is still under development."); 
				}
			}
		});
		label= PreferencesMessages.getString("CompilerConfigurationBlock.default_settings.label"); 
		addCheckBox(group, label, INTR_DEFAULT_COMPLIANCE, new String[] { DEFAULT_CONF, USER_CONF }, 0);	
		int indent= fPixelConverter.convertWidthInCharsToPixels(2);
		Control[] otherChildren= group.getChildren();	
				
		String[] versions= new String[] { VERSION_1_1, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5 };
		String[] versionsLabels= new String[] {
			PreferencesMessages.getString("CompilerConfigurationBlock.version11"),  
			PreferencesMessages.getString("CompilerConfigurationBlock.version12"), 
			PreferencesMessages.getString("CompilerConfigurationBlock.version13"), 
			PreferencesMessages.getString("CompilerConfigurationBlock.version14"), 
			PreferencesMessages.getString("CompilerConfigurationBlock.version15") 
		};