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
public String getSelectedCompilerCompliance() {
			if (fUseProjectJRE.isSelected()) {
				int index= fJRECombo.getSelectionIndex();
				if (index >= 0 && index < fComplianceData.length) { 
					return fComplianceData[index];
				}
			}
			return null;
		}
	}
	
	/**
	 * Show a warning when the project location contains files.
	 */
	private final class DetectGroup extends Observable implements Observer, SelectionListener {
		private final Link fHintText;
		private boolean fDetect;
		
		public DetectGroup(Composite composite) {
			
			Link jre50Text= new Link(composite, SWT.WRAP);
			jre50Text.setFont(composite.getFont());
			jre50Text.addSelectionListener(this);
			GridData gridData= new GridData(GridData.FILL, SWT.FILL, true, true);
			gridData.widthHint= convertWidthInCharsToPixels(50);
			jre50Text.setLayoutData(gridData);
			fHintText= jre50Text;
			
			handlePossibleJVMChange();