Skip to content

Varargs compilation error as of v3.9.5 #354

Open
@kittsville

Description

@kittsville

The new version v3.9.5 no longer accepts the varargs logging methods being wrapped, so a class like such will fail to compile:

class LogWrapper (val underlying: Logger) {
  // Imagine some DataDog/Bugsnag/analytics/etc. magic here that'd justify wrapping the logger

  def info(message: String, args: AnyRef*): Unit = underlying.info(message, args: _*)
}

I've create a minimal replication repo, based on the SBT hello world template, to demonstrate how the code no longer compiles in v3.9.5.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions