changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

GoogleClosure processor is not threadSafe #498

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running the googleClosure processor concurrently the following exception 
is thrown:

java.util.ConcurrentModificationException
    at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100)
    at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154)
    at com.google.javascript.jscomp.ComposeWarningsGuard.enables(ComposeWarningsGuard.java:150)
    at com.google.javascript.jscomp.CompilerOptions.enables(CompilerOptions.java:1027)
    at com.google.javascript.jscomp.Compiler.initOptions(Compiler.java:257)
    at com.google.javascript.jscomp.Compiler.initModules(Compiler.java:347)
    at com.google.javascript.jscomp.Compiler.init(Compiler.java:328)
    at com.google.javascript.jscomp.Compiler.compile(Compiler.java:536)
    at com.google.javascript.jscomp.Compiler.compile(Compiler.java:522)
    at ro.isdc.wro.extensions.processor.js.GoogleClosureCompressorProcessor.process(GoogleClosureCompressorProcessor.java:102)
    at ro.isdc.wro.extensions.processor.js.GoogleClosureCompressorProcessor.process(GoogleClosureCompressorProcessor.java:181)
    at ro.isdc.wro.extensions.processor.TestGoogleClosureCompressorProcessor$4.call(TestGoogleClosureCompressorProcessor.java:136)
    at ro.isdc.wro.extensions.processor.TestGoogleClosureCompressorProcessor$4.call(TestGoogleClosureCompressorProcessor.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

Original issue reported on code.google.com by alex.obj...@gmail.com on 30 Jul 2012 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 30 Jul 2012 at 1:02