eclipse-archived / ceylon

The Ceylon compiler, language module, and command line tools
http://ceylon-lang.org
Apache License 2.0
399 stars 62 forks source link

JDK9 module annotations not supported in javac #7272

Open FroMage opened 7 years ago

FroMage commented 7 years ago
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.redhat.ceylon.langtools.tools.javac.util.SharedNameTable$NameImpl)
    at com.redhat.ceylon.langtools.tools.javac.util.Assert.error(Assert.java:133)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations.annotationType(TypeAnnotations.java:231)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(TypeAnnotations.java:294)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(TypeAnnotations.java:1066)
    at com.redhat.ceylon.langtools.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:777)
    at com.redhat.ceylon.langtools.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:275)
    at com.redhat.ceylon.langtools.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(TypeAnnotations.java:1042)
    at com.redhat.ceylon.langtools.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:692)
    at com.redhat.ceylon.langtools.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:275)
    at com.redhat.ceylon.langtools.tools.javac.code.TypeAnnotations$1.run(TypeAnnotations.java:127)
    at com.redhat.ceylon.langtools.tools.javac.comp.Annotate.flush(Annotate.java:152)
    at com.redhat.ceylon.langtools.tools.javac.comp.Annotate.enterDone(Annotate.java:129)
    at com.redhat.ceylon.langtools.tools.javac.comp.Enter.complete(Enter.java:568)
FroMage commented 7 years ago

Got this while trying to compile vertx-lang-ceylon on java 9