Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Annotation class with constructor causes NPE in compiler #7441

Open
kingjon3377 opened this issue Dec 4, 2018 · 0 comments
Open

Annotation class with constructor causes NPE in compiler #7441

kingjon3377 opened this issue Dec 4, 2018 · 0 comments

Comments

@kingjon3377
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants