This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new b12adb4  Fix for CI ant build using old jdk (not 8) for compiling the 
compiler - no support for method references.
b12adb4 is described below

commit b12adb416652123f981c546b521c8aa8709ce6a9
Author: greg-dove <[email protected]>
AuthorDate: Wed Jan 12 15:19:54 2022 +1300

    Fix for CI ant build using old jdk (not 8) for compiling the compiler - no 
support for method references.
---
 .../royale/compiler/internal/codegen/js/utils/EmitterUtils.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
index cd6e91a..f4fadd7 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/utils/EmitterUtils.java
@@ -272,7 +272,12 @@ public class EmitterUtils
     }
 
     public static void removeExcludedImports(List<String> list) {
-        list.removeIf(EmitterUtils::shouldExcludeImport);
+        for (String listItem:list) {
+            if (shouldExcludeImport(listItem)) {
+                list.remove(listItem);
+            }
+        }
+        // list.removeIf(EmitterUtils::shouldExcludeImport);
     }
 
     public static IClassDefinition getClassDefinition(IDefinitionNode node)

Reply via email to