Bug 117216 [preferences] Support JDK version 1.6
I'm on 3.2M3. I'm using JDK 1.6 and "Infer Generic Type Arguments" shows an error dialog that this action is only available with Java 5 or better. I think, the problem is that org.eclipse.jdt.internal.corext.util.JavaModelUtil#is50OrHigherJRE only checks for JDK 1.5. I've changed the last line of that method to return javaVersion.startsWith(JavaCore.VERSION_1_5) || javaVersion.startsWith("1.6"); and it seems to work (just a workaround). PS: Once there's a VERSION_1.6 compilance level, is50OrHigher() will also fail...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardFirstPage.java
private final SelectionButtonDialogField fUseDefaultJRE, fUseProjectJRE;
		private final ComboDialogField fJRECombo;
		private final Group fGroup;
		private String[] fComplianceLabels;
		private String[] fComplianceData;
		private final Link fPreferenceLink;
		private IVMInstall[] fInstalledJVMs;
		
		public JREGroup(Composite composite) {
			fGroup= new Group(composite, SWT.NONE);
			fGroup.setFont(composite.getFont());
			fGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
			fGroup.setLayout(initGridLayout(new GridLayout(3, false), true));
			fGroup.setText(NewWizardMessages.JavaProjectWizardFirstPage_JREGroup_title); 
						
			fUseDefaultJRE= new SelectionButtonDialogField(SWT.RADIO);
			fUseDefaultJRE.setLabelText(getDefaultJVMLabel());
			fUseDefaultJRE.doFillIntoGrid(fGroup, 2);