From 9f43a63791d87189a90fe80392431c47ef9404b9 Mon Sep 17 00:00:00 2001 From: Tom Bentley Date: Wed, 23 Sep 2015 14:44:31 +0100 Subject: [PATCH] Mark value constructor getters as @Ignore This is not a whole true, however, because the model loader does still look at them, at least in order to support importing constructors as in #2176. But we don't want the model loader to see them as methods. Part of ceylon/ceylon.language#757 --- src/com/redhat/ceylon/compiler/java/codegen/CeylonVisitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/redhat/ceylon/compiler/java/codegen/CeylonVisitor.java b/src/com/redhat/ceylon/compiler/java/codegen/CeylonVisitor.java index c202ac963..4c187f547 100755 --- a/src/com/redhat/ceylon/compiler/java/codegen/CeylonVisitor.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/CeylonVisitor.java @@ -275,7 +275,7 @@ protected void transformSingletonConstructor( null, singletonModel.getName(), singletonModel, false); adb.modelAnnotations(gen.makeAtEnumerated()); - + adb.modelAnnotations(gen.makeAtIgnore()); adb.userAnnotations(gen.expressionGen().transformAnnotations(false, OutputElement.GETTER, ctor)); adb.fieldAnnotations(gen.expressionGen().transformAnnotations(false, OutputElement.FIELD, ctor)); adb.immutable();// not setter