From 6f7c2dff2b70dc7cd514b9c1d5381ccadb24257e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 1 Jun 2020 12:07:42 +0300 Subject: [PATCH] Fix copying source files in simple optimization mode. Fix #501 --- core/src/main/java/org/teavm/vm/TeaVM.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/vm/TeaVM.java b/core/src/main/java/org/teavm/vm/TeaVM.java index 07fcba50c..a4ddb7cda 100644 --- a/core/src/main/java/org/teavm/vm/TeaVM.java +++ b/core/src/main/java/org/teavm/vm/TeaVM.java @@ -486,7 +486,9 @@ public class TeaVM implements TeaVMHost, ServiceRepository { } private ListableClassHolderSource lazyPipeline() { - return new PostProcessingClassHolderSource(); + PostProcessingClassHolderSource result = new PostProcessingClassHolderSource(); + writtenClasses = result; + return result; } private void insertClassInit(ListableClassHolderSource classes) {