eclipse编译出现Internal compiler error

Internal compiler error
java.lang.NullPointerException
at org.eclipse.jdt.internal.compiler.codegen.StackMapFrameCodeStream.store(StackMapFrameCodeStream.java:1735)
at org.eclipse.jdt.internal.compiler.ast.SingleNameReference.generateAssignment(SingleNameReference.java:323)
at org.eclipse.jdt.internal.compiler.ast.Assignment.generateCode(Assignment.java:95)
at org.eclipse.jdt.internal.compiler.ast.Expression.generateCode(Expression.java:580)
at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.generateCode(SwitchStatement.java:226)
at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.generateCode(SwitchStatement.java:226)
at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Block.java:58)
at org.eclipse.jdt.internal.compiler.ast.WhileStatement.generateCode(WhileStatement.java:219)
at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Block.java:58)
at org.eclipse.jdt.internal.compiler.ast.TryStatement.generateCode(TryStatement.java:364)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:229)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:176)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:533)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:584)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:214)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:600)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:300)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:217)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:237)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:56)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:249)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:169)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

最后发现时eclipse的问题,更换了新版本后解决了无法编译的问题

你可能感兴趣的:(java,eclipse)