Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.ConcurrentModificationException while compiling via Java #4174

Open
efMss24 opened this issue Jun 26, 2024 · 0 comments
Open

java.util.ConcurrentModificationException while compiling via Java #4174

efMss24 opened this issue Jun 26, 2024 · 0 comments

Comments

@efMss24
Copy link

efMss24 commented Jun 26, 2024

I use the Function com.google.javascript.jscomp.Compiler#compile(java.util.List<com.google.javascript.jscomp.SourceFile>, java.util.List<com.google.javascript.jscomp.SourceFile>, com.google.javascript.jscomp.CompilerOptions) for compiling dynamic JS-Files before delivering them to the client.

There, the following ConcurrentModificationException occurs:

Caused by: java.util.ConcurrentModificationException: null
at java.base/java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1521)
at java.base/java.util.TreeMap$KeyIterator.next(TreeMap.java:1575)
at com.google.javascript.jscomp.ComposeWarningsGuard.disables(ComposeWarningsGuard.java:144)
at com.google.javascript.jscomp.ComposeWarningsGuard.mustRunChecks(ComposeWarningsGuard.java:127)
at com.google.javascript.jscomp.CompilerOptions.enables(CompilerOptions.java:1453)
at com.google.javascript.jscomp.DefaultPassConfig.getChecks(DefaultPassConfig.java:309)
at com.google.javascript.jscomp.Compiler.check(Compiler.java:1296)
at com.google.javascript.jscomp.Compiler.performChecks(Compiler.java:1085)
at com.google.javascript.jscomp.Compiler.lambda$stage1Passes$6(Compiler.java:994)
at com.google.javascript.jscomp.CompilerExecutor.lambda$runInCompilerThread$0(CompilerExecutor.java:100)

Its independent of the used options in CompilerOptions.
Version: [v20240317] (https://mvnrepository.com/artifact/com.google.javascript/closure-compiler/v20240317)

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

No branches or pull requests

1 participant