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 void handlePossibleJVMChange() {
			String selectedCompliance= fJREGroup.getSelectedCompilerCompliance();
			if (selectedCompliance == null) {
				selectedCompliance= JavaCore.getOption(JavaCore.COMPILER_COMPLIANCE);
			}
			IVMInstall selectedJVM= fJREGroup.getSelectedJVM();
			if (selectedJVM == null) {
				selectedJVM= JavaRuntime.getDefaultVMInstall();
			}
			String jvmCompliance= JavaCore.VERSION_1_4;
			String selectedVersion= jvmCompliance;
			if (selectedJVM instanceof IVMInstall2) {
				jvmCompliance= JavaModelUtil.getCompilerCompliance((IVMInstall2)selectedJVM, JavaCore.VERSION_1_4);
				selectedVersion= ((IVMInstall2) selectedJVM).getJavaVersion();
				if (selectedVersion == null) {
					selectedVersion= JavaCore.VERSION_1_4;
				}
			}
			if (!selectedCompliance.equals(jvmCompliance) && (selectedCompliance.equals(JavaCore.VERSION_1_5) || jvmCompliance.equals(JavaCore.VERSION_1_5))) {
				if (selectedCompliance.equals(JavaCore.VERSION_1_5))
					selectedCompliance= "5.0"; 
				
				fHintText.setText(Messages.format(NewWizardMessages.JavaProjectWizardFirstPage_DetectGroup_jre_message, new String[] {selectedCompliance, selectedVersion}));
				fHintText.setVisible(true);
			} else {
				fHintText.setVisible(false);
			}
		}