-
Notifications
You must be signed in to change notification settings - Fork 118
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
switch form v1.1.5 to v1.1.6 on java-9 produces java.util.ConcurrentModificationException #538
Comments
Thanks for the report @Andrei-Pozolotin! I suspect the direct cause might be 52959c9 but I am not sure if it somehow introduced a concurrency issue, just happened to uncover an existing one. |
processType looks like this: private def processType(in: Symbol, t: Type): xsbti.api.Type = {
typeCache.computeIfAbsent((in, t),
new java.util.function.Function[(Symbol, Type), xsbti.api.Type] {
def apply(key: (Symbol, Type)) = makeType(in, t)
})
} It checks if |
Thankfully the unit test is able to reproduce steps
scalaBinaryVersion.value match {
case "2.12" => old // ++ List("-opt-inline-from:<sources>", "-opt:l:inline", "-Yopt-inline-heuristics:at-inline-annotated")
problems
|
Fixed in #539 |
1.1.7 works, thank you |
@Andrei-Pozolotin Awesome. Thanks for the confirmation. |
This reverts commit 52959c9e40be56d17fdf92c8d3c2662911d3e4bd. Fixes sbt/zinc#538 The use of `java.util.HashMap` causes `java.util.ConcurrentModificationException` on JDK 9 and JDK 10. This is likely because `processType` recursively end up calling `processType` while modifying `typeCache`.
This reverts commit 52959c9e40be56d17fdf92c8d3c2662911d3e4bd. Fixes sbt/zinc#538 The use of `java.util.HashMap` causes `java.util.ConcurrentModificationException` on JDK 9 and JDK 10. This is likely because `processType` recursively end up calling `processType` while modifying `typeCache`. Rewritten from sbt/zinc@7a1995d
project:
https://github.com/random-maven/scalor-maven-plugin
after switch switch form zinc v1.1.5 to zinc v1.1.6:
builds fine on java-8:
https://travis-ci.org/random-maven/scalor-maven-plugin/builds/375394197
build fails on java-9, trace:
https://travis-ci.org/random-maven/scalor-maven-plugin/jobs/375394199#L2269
The text was updated successfully, but these errors were encountered: