Skip to content

scalac error EmptyScope.enter when upgrading to 2.12 #10622

Open
@steinybot

Description

Hi. I’m tyring to update a dependency to Scala 2.12 and I keep getting a strange error from scalac.

The error is:

Information:22/11/17, 9:27 AM - Compilation completed with 2 errors and 11 warnings in 3s 930ms
Error:scalac:
EmptyScope.enter
while compiling: /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
during phase: globalPhase=erasure, enteringPhase=posterasure
library version: version 2.12.4
compiler version: version 2.12.4
reconstructed args: -deprecation -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/tools.jar:/source/hazelcast-scala/out/test/classes:/source/hazelcast-scala/out/production/classes:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.cache/cache-api/1.0.0/2b57384801243f387f1a2e7ab8066ac79c2a91d3/cache-api-1.0.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.transaction/transaction-api/1.1/2ca09f0b36ca7d71b762e14ea2ff09d5eac57558/transaction-api-1.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-compiler/2.12.4/c69c0ee397050d7fa30cfe490471388d30c03bd0/scala-compiler-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast/3.7.8/a87907cf8bcde5b9576c00f6021d8d0d1fc8c004/hazelcast-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast-client/3.7.8/58e7aa99c5888f2f6579de0c45b9898eaf691aed/hazelcast-client-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/kryo/3.0.3/1ebca99f633ef31484176a727093e78c7fa43e7/kryo-3.0.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/2.6/639033469776fd37c08358c6b92a4761feb2af4b/objenesis-2.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/net.jpountz.lz4/lz4/1.3.0/c708bb2590c0652a642236ef45d9f99ff842a2ce/lz4-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.12.4/7663f74ef944453c86cc7e6597ed33e9281f6412/scala-library-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-reflect/2.12.4/2df9e6015b97e35464edddd20eec392bb54fab11/scala-reflect-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang.modules/scala-xml_2.12/1.0.6/e22de3366a698a9f744106fb6dda4335838cf6a7/scala-xml_2.12-1.0.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/reflectasm/1.10.1/515402cd542ab967a1b5028b4dee1e1800db205b/reflectasm-1.10.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/minlog/1.3.0/ff07b5f1b01d2f92bb00a337f9a94873712f0827/minlog-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar -unchecked
last tree to typer: TypeTree(class StackTraceElement)
tree position: line 73 of /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
tree tpe: StackTraceElement
symbol: final class StackTraceElement in package lang
symbol definition: final class StackTraceElement extends Serializable (a ClassSymbol)
symbol package: java.lang
symbol owners: class StackTraceElement
call site: method getClientCache in trait ClusterSetup in package schmoe
== Source file context for tree position ==
70
71 private def contextName: String = {
72 val st = Thread.currentThread().getStackTrace.drop(1)
73 st.dropWhile(.getClassName.contains("$")).head.getMethodName + "-" + UUID.randomUUID.toString.replace("-", "")
74 }
75
76 def getClientMap[K, V](name: String = contextName): IMap[K, V] = client.getMapK, V
Error:scalac: Error:
EmptyScope.enter
while compiling: /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
during phase: globalPhase=erasure, enteringPhase=posterasure
library version: version 2.12.4
compiler version: version 2.12.4
reconstructed args: -deprecation -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/tools.jar:/source/hazelcast-scala/out/test/classes:/source/hazelcast-scala/out/production/classes:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.cache/cache-api/1.0.0/2b57384801243f387f1a2e7ab8066ac79c2a91d3/cache-api-1.0.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.transaction/transaction-api/1.1/2ca09f0b36ca7d71b762e14ea2ff09d5eac57558/transaction-api-1.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-compiler/2.12.4/c69c0ee397050d7fa30cfe490471388d30c03bd0/scala-compiler-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast/3.7.8/a87907cf8bcde5b9576c00f6021d8d0d1fc8c004/hazelcast-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast-client/3.7.8/58e7aa99c5888f2f6579de0c45b9898eaf691aed/hazelcast-client-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/kryo/3.0.3/1ebca99f633ef31484176a727093e78c7fa43e7/kryo-3.0.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/2.6/639033469776fd37c08358c6b92a4761feb2af4b/objenesis-2.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/net.jpountz.lz4/lz4/1.3.0/c708bb2590c0652a642236ef45d9f99ff842a2ce/lz4-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.12.4/7663f74ef944453c86cc7e6597ed33e9281f6412/scala-library-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-reflect/2.12.4/2df9e6015b97e35464edddd20eec392bb54fab11/scala-reflect-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang.modules/scala-xml_2.12/1.0.6/e22de3366a698a9f744106fb6dda4335838cf6a7/scala-xml_2.12-1.0.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/reflectasm/1.10.1/515402cd542ab967a1b5028b4dee1e1800db205b/reflectasm-1.10.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/minlog/1.3.0/ff07b5f1b01d2f92bb00a337f9a94873712f0827/minlog-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar -unchecked
last tree to typer: TypeTree(class StackTraceElement)
tree position: line 73 of /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
tree tpe: StackTraceElement
symbol: final class StackTraceElement in package lang
symbol definition: final class StackTraceElement extends Serializable (a ClassSymbol)
symbol package: java.lang
symbol owners: class StackTraceElement
call site: method getClientCache in trait ClusterSetup in package schmoe
== Source file context for tree position ==
70
71 private def contextName: String = {
72 val st = Thread.currentThread().getStackTrace.drop(1)
73 st.dropWhile(
.getClassName.contains("$")).head.getMethodName + "-" + UUID.randomUUID.toString.replace("-", "")
74 }
75
76 def getClientMap[K, V](name: String = contextName): IMap[K, V] = client.getMapK, V
scala.reflect.internal.FatalError:
EmptyScope.enter
while compiling: /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
during phase: globalPhase=erasure, enteringPhase=posterasure
library version: version 2.12.4
compiler version: version 2.12.4
reconstructed args: -deprecation -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/lib/tools.jar:/source/hazelcast-scala/out/test/classes:/source/hazelcast-scala/out/production/classes:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.cache/cache-api/1.0.0/2b57384801243f387f1a2e7ab8066ac79c2a91d3/cache-api-1.0.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/javax.transaction/transaction-api/1.1/2ca09f0b36ca7d71b762e14ea2ff09d5eac57558/transaction-api-1.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-compiler/2.12.4/c69c0ee397050d7fa30cfe490471388d30c03bd0/scala-compiler-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast/3.7.8/a87907cf8bcde5b9576c00f6021d8d0d1fc8c004/hazelcast-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.hazelcast/hazelcast-client/3.7.8/58e7aa99c5888f2f6579de0c45b9898eaf691aed/hazelcast-client-3.7.8.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/kryo/3.0.3/1ebca99f633ef31484176a727093e78c7fa43e7/kryo-3.0.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/2.6/639033469776fd37c08358c6b92a4761feb2af4b/objenesis-2.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/net.jpountz.lz4/lz4/1.3.0/c708bb2590c0652a642236ef45d9f99ff842a2ce/lz4-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.12.4/7663f74ef944453c86cc7e6597ed33e9281f6412/scala-library-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-reflect/2.12.4/2df9e6015b97e35464edddd20eec392bb54fab11/scala-reflect-2.12.4.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.scala-lang.modules/scala-xml_2.12/1.0.6/e22de3366a698a9f744106fb6dda4335838cf6a7/scala-xml_2.12-1.0.6.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/reflectasm/1.10.1/515402cd542ab967a1b5028b4dee1e1800db205b/reflectasm-1.10.1.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/com.esotericsoftware/minlog/1.3.0/ff07b5f1b01d2f92bb00a337f9a94873712f0827/minlog-1.3.0.jar:/Users/jason/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar -unchecked
last tree to typer: TypeTree(class StackTraceElement)
tree position: line 73 of /source/hazelcast-scala/src/test/scala/joe/schmoe/ClusterSetup.scala
tree tpe: StackTraceElement
symbol: final class StackTraceElement in package lang
symbol definition: final class StackTraceElement extends Serializable (a ClassSymbol)
symbol package: java.lang
symbol owners: class StackTraceElement
call site: method getClientCache in trait ClusterSetup in package schmoe
== Source file context for tree position ==
70
71 private def contextName: String = {
72 val st = Thread.currentThread().getStackTrace.drop(1)
73 st.dropWhile(.getClassName.contains("$")).head.getMethodName + "-" + UUID.randomUUID.toString.replace("-", "")
74 }
75
76 def getClientMap[K, V](name: String = contextName): IMap[K, V] = client.getMapK, V
at scala.reflect.internal.Reporting.abort(Reporting.scala:61)
at scala.reflect.internal.Reporting.abort$(Reporting.scala:57)
at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:16)
at scala.reflect.internal.Scopes$EmptyScope$.enterEntry(Scopes.scala:499)
at scala.reflect.internal.Scopes$Scope.enter(Scopes.scala:134)
at scala.reflect.internal.Symbols$Symbol.setInfoAndEnter(Symbols.scala:1572)
at scala.tools.nsc.typechecker.Implicits.memberWildcardType(Implicits.scala:302)
at scala.tools.nsc.typechecker.Implicits.memberWildcardType$(Implicits.scala:299)
at scala.tools.nsc.transform.Erasure.memberWildcardType(Erasure.scala:15)
at scala.tools.nsc.typechecker.Implicits$HasMember$.$anonfun$apply$1(Implicits.scala:312)
at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:82)
at scala.tools.nsc.typechecker.Implicits$HasMember$.apply(Implicits.scala:312)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$adaptToMemberWithArgs$7(Typers.scala:1325)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$silent$2(Typers.scala:712)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:712)
at scala.tools.nsc.typechecker.Typers$Typer.adaptToMemberWithArgs(Typers.scala:1325)
at scala.tools.nsc.typechecker.Typers$Typer.typedSelect$1(Typers.scala:4980)
at scala.tools.nsc.typechecker.Typers$Typer.typedSelectOrSuperCall$1(Typers.scala:5009)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5531)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5547)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5667)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5675)
at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:698)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$38(Typers.scala:4708)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:698)
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4710)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4757)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5530)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5547)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5798)
at scala.tools.nsc.typechecker.Typers$Typer.typedValDefImpl(Typers.scala:2068)
at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:2024)
at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5494)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5546)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5647)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3086)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2456)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$96(Typers.scala:5505)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:486)
at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:486)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5540)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5547)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2457)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typed1$96(Typers.scala:5505)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typerWithLocalContext$1(Typers.scala:486)
at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:486)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5540)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5547)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5798)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2287)
at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5495)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5546)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5647)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3086)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1987)
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1811)
at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5496)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5546)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5647)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:3086)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3231)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5207)
at scala.tools.nsc.typechecker.Typers$Typer.typedMemberDef$1(Typers.scala:5499)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5546)
at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:773)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5584)
at scala.tools.nsc.typechecker.Typers$Typer.typedInternal(Typers.scala:5616)
at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5557)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5562)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5643)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.$anonfun$transform$2(Erasure.scala:1285)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:1285)
at scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:826)
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:140)
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
at scala.tools.nsc.Global$GlobalPhase.$anonfun$applyPhase$1(Global.scala:436)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:429)
at scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1(Global.scala:400)
at scala.tools.nsc.Global$GlobalPhase.$anonfun$run$1$adapted(Global.scala:400)
at scala.collection.Iterator.foreach(Iterator.scala:929)
at scala.collection.Iterator.foreach$(Iterator.scala:929)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:400)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1452)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1436)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1429)
at scala.tools.nsc.Global$Run.compile(Global.scala:1545)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:115)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:94)
at xsbt.CompilerInterface.run(CompilerInterface.scala:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:32)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:26)
at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:68)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:25)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
Warning:scalac: exception when typing com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>
Warning:scalac:
Warning:scalac: exception when typing com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension
Warning:scalac: exception when typing com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1)
Warning:scalac: exception when typing val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1)
Warning:scalac: exception when typing {
val qual$1: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.client());
val x$4: String = name;
val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$1, x$4, x$5, evidence$1, evidence$2)
}
Warning:scalac: exception when typing {
{
val qual$1: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.client());
val x$4: String = name;
val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$1, x$4, x$5, evidence$1, evidence$2)
}
}
Warning:scalac: exception when typing def getClientCache(name: String, evidence$1: scala.reflect.ClassTag, evidence$2: scala.reflect.ClassTag): com.hazelcast.cache.ICache = {
{
val qual$1: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.client());
val x$4: String = name;
val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$1, x$4, x$5, evidence$1, evidence$2)
}
}
Warning:scalac: exception when typing abstract trait ClusterSetup extends Object {
<sub_synth> protected[this] def joe$schmoe$ClusterSetup$setter$memberConfig
=(x$1: com.hazelcast.config.Config): Unit;
<sub_synth> protected[this] def joe$schmoe$ClusterSetup$setter$clientConfig_=(x$1: com.hazelcast.client.config.ClientConfig): Unit;
def /ClusterSetup/$init$(): Unit = {
()
};
implicit def ec(): scala.concurrent.ExecutionContextExecutor = scala.concurrent.ExecutionContext.global();
<sub_synth> def _hzs(): scala.collection.immutable.Vector;
<sub_synth> def hzs=(x$1: scala.collection.immutable.Vector): Unit;
implicit def hzs(): scala.collection.immutable.Vector = ClusterSetup.this._hzs();
<sub_synth> def _client(): com.hazelcast.core.HazelcastInstance;
<sub_synth> def client=(x$1: com.hazelcast.core.HazelcastInstance): Unit;
def client(): com.hazelcast.core.HazelcastInstance = ClusterSetup.this.client();
def clusterSize(): Int = 3;
def port(): Int = 9991;
final <sub_synth> def memberConfig(): com.hazelcast.config.Config = (new com.hazelcast.config.Config(): com.hazelcast.config.Config);
final <sub_synth> def clientConfig(): com.hazelcast.client.config.ClientConfig = (new com.hazelcast.client.config.ClientConfig(): com.hazelcast.client.config.ClientConfig);
def init(): Unit;
def destroy(): Unit;
@org.junit.BeforeClass def beforeClass(): Unit = {
ClusterSetup.this.init();
val group: String = java.util.UUID.randomUUID().toString();
scala.collection.immutable.List.apply(scala.Predef.wrapRefArray(Array[com.hazelcast.Scala.serialization.SerializerEnum]{com.hazelcast.Scala.serialization.Defaults, TestSerializers, TestKryoSerializers})).foreach({
final def $anonfun$beforeClass(serializers: com.hazelcast.Scala.serialization.SerializerEnum): Unit = {
serializers.register(ClusterSetup.this.memberConfig().getSerializationConfig());
serializers.register(ClusterSetup.this.clientConfig().getSerializationConfig())
};
((serializers: com.hazelcast.Scala.serialization.SerializerEnum) => $anonfun$beforeClass(serializers))
});
ClusterSetup.this.memberConfig().getGroupConfig().setName(group);
ClusterSetup.this.memberConfig().getNetworkConfig().setPort(ClusterSetup.this.port());
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setGracefulShutdownMaxWait(scala.concurrent.duration.package.DurationInt(1).second());
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setPhoneHomeEnabled(false);
ClusterSetup.this.memberConfig().getMapConfig("default").setStatisticsEnabled(false).setMaxSizeConfig(com.hazelcast.Scala.package.toConfig(new com.hazelcast.Scala.UsedHeapSize(com.hazelcast.Scala.package.HzInt.gigabytes$extension(com.hazelcast.Scala.package.HzInt(60)))));
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setShutdownHookEnabled(false);
ClusterSetup.this.hzs=(scala.runtime.RichInt.to$extension0(scala.Predef.intWrapper(1), ClusterSetup.this.clusterSize()).par().map({
final def $anonfun$beforeClass(x$1: Int): com.hazelcast.core.HazelcastInstance = com.hazelcast.Scala.package.mbrConf2scala(ClusterSetup.this.memberConfig()).newInstance();
((x$1: Int) => $anonfun$beforeClass(x$1))
}, immutable.this.ParSeq.canBuildFrom()).seq().toVector());
ClusterSetup.this.clientConfig().getGroupConfig().setName(group);
ClusterSetup.this.clientConfig().getNetworkConfig().addAddress(Array[String]{new StringContext(scala.Predef.wrapRefArray(Array[String]{"localhost:", ""})).s(scala.Predef.genericWrapArray(Array[Object]{ClusterSetup.this.port()}))});
ClusterSetup.this.client=(com.hazelcast.Scala.client.package.clientConf2scala(ClusterSetup.this.clientConfig()).newClient())
};
@org.junit.AfterClass def afterClass(): Unit = {
ClusterSetup.this.destroy();
ClusterSetup.this.client().shutdown();
com.hazelcast.instance.HazelcastInstanceFactory.terminateAll()
};
private def contextName(): String = {
val st: Array[StackTraceElement] = scala.Predef.refArrayOps(java.lang.Thread.currentThread().getStackTrace()).drop(1);
scala.Predef.refArrayOps(scala.Predef.refArrayOps(st).dropWhile({
final def $anonfun$contextName(x$2: StackTraceElement): Boolean = x$2.getClassName().contains("$");
((x$2: StackTraceElement) => $anonfun$contextName(x$2))
})).head().getMethodName().+("-").+(java.util.UUID.randomUUID().toString().replace("-", ""))
};
def getClientMap(name: String): com.hazelcast.core.IMap = ClusterSetup.this.client().getMap(name);
def getClientMap$default$1(): String = ClusterSetup.this.contextName();
def getClientCache(name: String, evidence$1: scala.reflect.ClassTag, evidence$2: scala.reflect.ClassTag): com.hazelcast.cache.ICache = {
{
val qual$1: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.client());
val x$4: String = name;
val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$1, x$4, x$5, evidence$1, evidence$2)
}
};
def getClientCache$default$1(): String = ClusterSetup.this.contextName();
def getMemberMap(name: String): com.hazelcast.core.IMap = ClusterSetup.this.hzs().apply(0).getMap(name);
def getMemberMap$default$1(): String = ClusterSetup.this.contextName();
def getMemberCache(name: String, evidence$3: scala.reflect.ClassTag, evidence$4: scala.reflect.ClassTag): com.hazelcast.cache.ICache = {
{
val qual$2: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.hzs().apply(0));
val x$6: String = name;
val x$7: Boolean = com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$default$2$extension(qual$2);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$2, x$6, x$7, evidence$3, evidence$4)
}
};
def getMemberCache$default$1(): String = ClusterSetup.this.contextName();
def timed(warmups: Int, unit: java.util.concurrent.TimeUnit, thunk: Function0): Tuple2 = {
scala.runtime.RichInt.until$extension0(scala.Predef.intWrapper(0), warmups).foreach({
final def $anonfun$timed(x$3: Int): Object = thunk.apply();
((x$3: Int) => $anonfun$timed(x$3))
});
val start: Long = java.lang.System.nanoTime();
scala.Predef.ArrowAssoc.->$extension(scala.Predef.ArrowAssoc(thunk.apply()), unit.convert(java.lang.System.nanoTime().-(start), NANOSECONDS))
};
def timed$default$1(): Int = 0;
def timed$default$2(): java.util.concurrent.TimeUnit = MILLISECONDS
}
Warning:scalac: exception when typing package joe.schmoe {
abstract trait ClusterSetup extends Object {
<sub_synth> protected[this] def joe$schmoe$ClusterSetup$setter$memberConfig
=(x$1: com.hazelcast.config.Config): Unit;
<sub_synth> protected[this] def joe$schmoe$ClusterSetup$setter$clientConfig
=(x$1: com.hazelcast.client.config.ClientConfig): Unit;
def /ClusterSetup/$init$(): Unit = {
()
};
implicit def ec(): scala.concurrent.ExecutionContextExecutor = scala.concurrent.ExecutionContext.global();
<sub_synth> def _hzs(): scala.collection.immutable.Vector;
<sub_synth> def hzs=(x$1: scala.collection.immutable.Vector): Unit;
implicit def hzs(): scala.collection.immutable.Vector = ClusterSetup.this._hzs();
<sub_synth> def _client(): com.hazelcast.core.HazelcastInstance;
<sub_synth> def client=(x$1: com.hazelcast.core.HazelcastInstance): Unit;
def client(): com.hazelcast.core.HazelcastInstance = ClusterSetup.this._client();
def clusterSize(): Int = 3;
def port(): Int = 9991;
final <sub_synth> def memberConfig(): com.hazelcast.config.Config = (new com.hazelcast.config.Config(): com.hazelcast.config.Config);
final <sub_synth> def clientConfig(): com.hazelcast.client.config.ClientConfig = (new com.hazelcast.client.config.ClientConfig(): com.hazelcast.client.config.ClientConfig);
def init(): Unit;
def destroy(): Unit;
@org.junit.BeforeClass def beforeClass(): Unit = {
ClusterSetup.this.init();
val group: String = java.util.UUID.randomUUID().toString();
scala.collection.immutable.List.apply(scala.Predef.wrapRefArray(Array[com.hazelcast.Scala.serialization.SerializerEnum]{com.hazelcast.Scala.serialization.Defaults, TestSerializers, TestKryoSerializers})).foreach({
final def $anonfun$beforeClass(serializers: com.hazelcast.Scala.serialization.SerializerEnum): Unit = {
serializers.register(ClusterSetup.this.memberConfig().getSerializationConfig());
serializers.register(ClusterSetup.this.clientConfig().getSerializationConfig())
};
((serializers: com.hazelcast.Scala.serialization.SerializerEnum) => $anonfun$beforeClass(serializers))
});
ClusterSetup.this.memberConfig().getGroupConfig().setName(group);
ClusterSetup.this.memberConfig().getNetworkConfig().setPort(ClusterSetup.this.port());
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setGracefulShutdownMaxWait(scala.concurrent.duration.package.DurationInt(1).second());
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setPhoneHomeEnabled(false);
ClusterSetup.this.memberConfig().getMapConfig("default").setStatisticsEnabled(false).setMaxSizeConfig(com.hazelcast.Scala.package.toConfig(new com.hazelcast.Scala.UsedHeapSize(com.hazelcast.Scala.package.HzInt.gigabytes$extension(com.hazelcast.Scala.package.HzInt(60)))));
com.hazelcast.Scala.package.mbrConf2props(ClusterSetup.this.memberConfig()).setShutdownHookEnabled(false);
ClusterSetup.this.hzs=(scala.runtime.RichInt.to$extension0(scala.Predef.intWrapper(1), ClusterSetup.this.clusterSize()).par().map({
final def $anonfun$beforeClass(x$1: Int): com.hazelcast.core.HazelcastInstance = com.hazelcast.Scala.package.mbrConf2scala(ClusterSetup.this.memberConfig()).newInstance();
((x$1: Int) => $anonfun$beforeClass(x$1))
}, immutable.this.ParSeq.canBuildFrom()).seq().toVector());
ClusterSetup.this.clientConfig().getGroupConfig().setName(group);
ClusterSetup.this.clientConfig().getNetworkConfig().addAddress(Array[String]{new StringContext(scala.Predef.wrapRefArray(Array[String]{"localhost:", ""})).s(scala.Predef.genericWrapArray(Array[Object]{ClusterSetup.this.port()}))});
ClusterSetup.this.client=(com.hazelcast.Scala.client.package.clientConf2scala(ClusterSetup.this.clientConfig()).newClient())
};
@org.junit.AfterClass def afterClass(): Unit = {
ClusterSetup.this.destroy();
ClusterSetup.this.client().shutdown();
com.hazelcast.instance.HazelcastInstanceFactory.terminateAll()
};
private def contextName(): String = {
val st: Array[StackTraceElement] = scala.Predef.refArrayOps(java.lang.Thread.currentThread().getStackTrace()).drop(1);
scala.Predef.refArrayOps(scala.Predef.refArrayOps(st).dropWhile({
final def $anonfun$contextName(x$2: StackTraceElement): Boolean = x$2.getClassName().contains("$");
((x$2: StackTraceElement) => $anonfun$contextName(x$2))
})).head().getMethodName().+("-").+(java.util.UUID.randomUUID().toString().replace("-", ""))
};
def getClientMap(name: String): com.hazelcast.core.IMap = ClusterSetup.this.client().getMap(name);
def getClientMap$default$1(): String = ClusterSetup.this.contextName();
def getClientCache(name: String, evidence$1: scala.reflect.ClassTag, evidence$2: scala.reflect.ClassTag): com.hazelcast.cache.ICache = {
{
val qual$1: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.client());
val x$4: String = name;
val x$5: Boolean = com.hazelcast.Scala.jcache.<JCacheHazelcastInstance: error>.getCache$default$2$extension(qual$1);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$1, x$4, x$5, evidence$1, evidence$2)
}
};
def getClientCache$default$1(): String = ClusterSetup.this.contextName();
def getMemberMap(name: String): com.hazelcast.core.IMap = ClusterSetup.this.hzs().apply(0).getMap(name);
def getMemberMap$default$1(): String = ClusterSetup.this.contextName();
def getMemberCache(name: String, evidence$3: scala.reflect.ClassTag, evidence$4: scala.reflect.ClassTag): com.hazelcast.cache.ICache = {
{
val qual$2: ErasedValueType(class JCacheHazelcastInstance, com.hazelcast.core.HazelcastInstance) = com.hazelcast.Scala.jcache.package.asScala(ClusterSetup.this.hzs().apply(0));
val x$6: String = name;
val x$7: Boolean = com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$default$2$extension(qual$2);
com.hazelcast.Scala.jcache.JCacheHazelcastInstance.getCache$extension(qual$2, x$6, x$7, evidence$3, evidence$4)
}
};
def getMemberCache$default$1(): String = ClusterSetup.this.contextName();
def timed(warmups: Int, unit: java.util.concurrent.TimeUnit, thunk: Function0): Tuple2 = {
scala.runtime.RichInt.until$extension0(scala.Predef.intWrapper(0), warmups).foreach({
final def $anonfun$timed(x$3: Int): Object = thunk.apply();
((x$3: Int) => $anonfun$timed(x$3))
});
val start: Long = java.lang.System.nanoTime();
scala.Predef.ArrowAssoc.->$extension(scala.Predef.ArrowAssoc(thunk.apply()), unit.convert(java.lang.System.nanoTime().-(start), NANOSECONDS))
};
def timed$default$1(): Int = 0;
def timed$default$2(): java.util.concurrent.TimeUnit = MILLISECONDS
}
}
/source/hazelcast-scala/src/test/scala/joe/schmoe/CleanUp.scala
Warning:(14, 10) object JavaConversions in package collection is deprecated (since 2.12.0): use JavaConverters
hz.getDistributedObjects.foreach(
.destroy)

The branch is up on https://github.com/Geneious/hazelcast-scala/tree/ccc754fdc8b410db7c7c4dac0a84f0daf8cb4042 if anyone wants to reproduce it.

There was a similar post on Scala - Internals (http://www.scala-archive.org/Compiling-molecule-project-with-scalac2-12-0-M2-td4642750.html) about a regression which was fixed a while back.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions