eclipse-archived/ceylon

Annotation class with constructor causes NPE in compiler

Opened this issue · 0 comments

Attempting to compile this code

shared final annotation class MweAnnotation satisfies OptionalAnnotation<MweAnnotation,ValueDeclaration> {
    shared new (Anything arg) {}
}

causes the following error message:

source/annotation/run.ceylon:1: error: the '' caused an exception visiting a 'ClassDefinition' node: '"java.lang.NullPointerException"' at 'com.redhat.ceylon.compiler.java.codegen.CeylonTransformer$1.makeClassBody(CeylonTransformer.java:225)'

This happens both in the command-line distribution (ceylon --version says ceylon version 1.3.3 0d594b3 (Contents May Differ); it's installed on my Mac via Homebrew) and in the Intellij IDEA plugin.