ceylon/ceylon-compiler — Issue #250: assertion error in java
Author: gavinking
Created: 2011-11-30 04:16:12+00:00
State: open
Labels: BUG

When I import the language module project into Eclipse, the build fails with the following:

An exception has occurred in the compiler (1.6.0_ceylon). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: ceylon.language.$true: completer = null; class file = ceylon/language/$true.class(ceylon/language:$true.class); source file = null
at com.sun.tools.javac.jvm.ClassReader.enterClass(ClassReader.java:1750)
at com.redhat.ceylon.compiler.loader.CeylonModelLoader$1.loadFromSource(CeylonModelLoader.java:166)
at com.redhat.ceylon.compiler.loader.CeylonModelLoader$1.visit(CeylonModelLoader.java:181)
at com.redhat.ceylon.compiler.typechecker.tree.Tree$ObjectDefinition.visit(Tree.java:1050)
at com.redhat.ceylon.compiler.typechecker.tree.Walker.walkCompilationUnit(Walker.java:13)
at com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visitChildren(Tree.java:30)
at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:9)
at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:11)
at com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visit(Tree.java:22)
at com.redhat.ceylon.compiler.loader.CeylonModelLoader.setupSourceFileObjects(CeylonModelLoader.java:161)
at com.redhat.ceylon.compiler.loader.CeylonEnter.completeCeylonTrees(CeylonEnter.java:151)
at com.redhat.ceylon.compiler.loader.CeylonEnter.main(CeylonEnter.java:114)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:905)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:805)
at com.redhat.ceylon.compiler.launcher.Main.compile(Main.java:392)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.generateBinaries(CeylonBuilder.java:727)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.build(CeylonBuilder.java:411)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)