bug icon indicating copy to clipboard operation
bug copied to clipboard

Scala 2 bug reports only. Please, no questions — proper bug reports only.

Results 409 bug issues
Sort by recently updated
recently updated
newest added

```scala class A(val y: Int) class B(y: Int) extends A(y) { def yy = y } class C extends B(0) { override val y = -1 } object Test {...

fixed in Scala 3

## reproduction steps (using Scala 2.12.12 or 2.13.3) - clone a project from https://github.com/OndrejSpanel/ParLoopAndFuture - run the Main class using JDK 11.0.4 ## problem Observe the message "Suspicious background duration...

concurrency

Since it is not going down without a fight, ticket time. Adriaan observed that Array matching is being done covariantly. So is isInstanceOf it turns out. The following prints "1...

patmat

https://gist.github.com/2943283 ```scala class Indirection[T](implicit val c: CompanionProvider[T]) { def indirect: c.CompanionT = c.provide } // error: value foo is not a member of _1.c.CompanionT new Indirection[Foo].indirect.foo ``` this doesn't work...

infer
dependent types
enhancement
fixed in Scala 3

I am raising it here because I have no idea how this can happen. Restarting the presentation compiler doesn't help only restarting the whole JVM does. It's also not possible...

Here's a self-contained example that shows the incorrect behavior: ```scala import scala.collection.mutable import scala.collection.immutable.SortedSet import scala.util.Random class Bug(m: mutable.Map[Long, Unit]): def test(useGetOrElseUpdate: Boolean): Set[Long] = val rand = Random(1) def...

library:collections

```scala Welcome to Scala 2.13.15 (OpenJDK 64-Bit Server VM, Java 21.0.1). Type in expressions for evaluation. Or try :help. scala> implicitly[collection.BuildFrom[collection.concurrent.Map[String, String], (String, String), collection.concurrent.Map[String, String]]] ^ error: Cannot construct...

has PR
library:collections

With Scalac 2.10, the use of any objects, class or method annotaded with the com.unboundid.util.ThreadSafetyLevel leads to java.lang.AssertionError. For example, the following file Test.scala: ```scala import com.unboundid.ldap.sdk.Entry object Test extends...

annotations
typer

Here is a minimal test case that shows the problem: ```scala trait Main { trait A { type B } trait C { def c(a: A, x: Int = 0)(b:...

infer
dependent types

## Reproduction steps openjdk 17 and 21 scala version 2.13.10 and 2.13.14 and 2.13.15 sbt version 1.10.1 and 1.10.2 build.sbt ``` scalaVersion := "2.13.14" // or other 2.13.x versions ```...

has PR
compiler crash
fixed in Scala 3