Bug 74022 Unsupported major.minor version 49.0 during quick fix.
I use Sun JDK 1.4.2 to run Eclipse 3.1 200409140800 and Sun JDK 1.5.0 RC to run my application. Eclipse is configured to compile for JDK 1.5. I get error message "Unsupported major.minor version 49.0" when I try to use "Add generated serial version ID" quickfix for the following class ------------ package test.cheetah; public class Test implements java.io.Serializable { } ------------
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SerialVersionQuickFixTest.java
buffer.append("    public void test() {\n"); 
				buffer.append("        Serializable var3= new Serializable() {\n"); 
				buffer.append("            " + FIELD_COMMENT + "\n");
				buffer.append("            private static final long serialVersionUID = 1L;\n"); 
				buffer.append("            int var4;\n"); 
				buffer.append("        };\n"); 
				buffer.append("    }\n"); 
				buffer.append("}\n"); 
				assertEqualString(preview, buffer.toString());
			}
		}
	}
	/**
	 * @throws Exception
	 */
	public void testInnerClass() throws Exception {
		IPackageFragment package2= fSourceFolder.createPackageFragment("test2", false, null); 
		StringBuffer buffer= new StringBuffer();
		buffer.append("package test2;\n"); 
		buffer.append("import java.io.Serializable;\n"); 
		buffer.append("public class Test2 {\n"); 
		buffer.append("    protected int var1;\n"); 
		buffer.append("    protected int var2;\n"); 
		buffer.append("    protected class Test1 implements Serializable {\n"); 
		buffer.append("        public long var3;\n"); 
		buffer.append("    }\n"); 
		buffer.append("}\n"); 
		ICompilationUnit unit2= package2.createCompilationUnit("Test2.java", buffer.toString(), false, null); 
		fProject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
		CompilationUnit root2= getASTRoot(unit2);