diff --git a/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/CeylonTransformer.java b/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/CeylonTransformer.java index 89dffb28410..9bacd2a2392 100755 --- a/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/CeylonTransformer.java +++ b/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/CeylonTransformer.java @@ -520,10 +520,6 @@ public List transformAttribute( builder.is(Flags.NATIVE, true); builder.isJavaNative(true); } - if (memoized && !declarationModel.isVariable()) { - builder.immutable(); - } - // For captured local variable Values, use a VariableBox if (Decl.isBoxedVariable(declarationModel)) { diff --git a/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java b/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java index 8abc6f46575..0f27d41ea7a 100755 --- a/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java +++ b/compiler-java/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java @@ -3560,9 +3560,7 @@ public void transform(Tree.AttributeDeclaration decl, ClassDefinitionBuilder cla if (Decl.isVariable(decl) || Decl.isLate(decl)) { if (!withinInterface || model.isShared()) { // Generate setter in main class or interface (when shared) - if (!memoized || Decl.isVariable(decl)) { - classBuilder.attribute(makeSetter(decl, false, lazy, memoizedInitialValue)); - } + classBuilder.attribute(makeSetter(decl, false, lazy, memoizedInitialValue)); } if (withinInterface && lazy) { // Generate setter in companion class