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

Let's audit the wrappers we have in the std lib to make sure the behavior is consistent wrt a regular call on wrapped objects == null. Follow up for https://github.com/scala/scala/pull/4343

library

Given a `protected[this]` method and a subtype overriding its declaration to make access public, the widening of access isn't applied to the specialized declarations. ```scala trait QuitePrivate[@specialized(Int) +K] { protected[this]...

help wanted
has PR
specialization

scala 2.12.4 typechecker crashes when trying to run the following script with "scala script.scala": import scala.language.higherKinds class Foo[X] class Bar[X] class CrashIt[A[_]] { def cast(a: Any): A[Int] = a.asInstanceOf[A[Int]] }...

compiler crash
typer

Hi, we experience (somewhat randomly) this error: ``` [error] an unexpected type representation reached the compiler backend while compiling Operations.scala: (result: => doobie.imports.ConnectionIO[Either[String,T]])cobam.database.package.OperationResultConnectionIOEitherLiftSyntax[T]. If possible, please file a bug on...

compiler crash
needs info

In the 2.13 collection library, if you want to delete multiple elements from a mutable collection, the operation is called `subtractAll`. In `java.util.Collections`, it is called `removeAll`. I propose to...

library
docs
library:collections

Define and compile `object Boxing`, then load in a scala REPL (e.g. `sbt console`) and type ```scala scala> val v: Boxing = Boxing :11: error: type mismatch; found : Boxing.type...

compiler crash

## reproduction steps using Scala 2.12.15, This bug can be reproduced in Java 8, 11, 17. Here is a small example to reproduce the bug: `C.java` ``` class C {...

compiler crashers are a dime a dozen, but finding a nice short one is worth a whole dime all by itself: ```scala trait T extends (Any{}) ``` up to 2.9...

compiler crash

https://scala-lang.org/files/archive/spec/2.13/02-identifiers-names-and-scopes.html Currently, spec says: >Bindings of different kinds have precedence defined on them: >... >4. Definitions made available by a package clause, but not also defined in the same compilation...

has PR
language spec

Test.scala ```scala package p object O { Test.foo() } ``` Test.java ```scala package p; public class Test { public static p.O$ foo() { return null; } } ``` ``` $...

java interop