We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4be3e8 commit e3c1618Copy full SHA for e3c1618
library/src/scala/collection/immutable/Vector.scala
@@ -81,8 +81,9 @@ object Vector extends StrictOptimizedSeqFactory[Vector] {
81
}
82
83
private val defaultApplyPreferredMaxLength: Int =
84
- try System.getProperty("scala.collection.immutable.Vector.defaultApplyPreferredMaxLength",
85
- "250").toInt
+ // explicit StringOps to avoid initialization cycle with Predef (scala/bug#13009)
+ try new StringOps(System.getProperty("scala.collection.immutable.Vector.defaultApplyPreferredMaxLength",
86
+ "250")).toInt
87
catch {
88
case _: SecurityException => 250
89
0 commit comments