Skip to content

fix scala.reflect.Manifest warning - #1599

Merged
eed3si9n merged 1 commit into
sbt:developfrom
xuwei-k:Manifest-warning
Sep 23, 2025
Merged

fix scala.reflect.Manifest warning#1599
eed3si9n merged 1 commit into
sbt:developfrom
xuwei-k:Manifest-warning

Conversation

@xuwei-k

@xuwei-k xuwei-k commented Sep 23, 2025

Copy link
Copy Markdown
Member
[warn] -- Deprecation Warning: /home/runner/work/zinc/zinc/internal/zinc-persist/src/main/scala/sbt/internal/inc/text/AnalyzedClassFormats.scala:51:5 
[warn] 51 |    )
[warn]    |     ^
[warn]    |Compiler synthesis of Manifest and OptManifest is deprecated, instead
[warn]    |replace with the type `scala.reflect.ClassTag[xsbti.api.NameHash]`.
[warn]    |Alternatively, consider using the new metaprogramming features of Scala 3,
[warn]    |see https://docs.scala-lang.org/scala3/reference/metaprogramming.html

Comment on lines +23 to +29
def build(length: Int, ts: Iterator[T]) = {
val result = new Array[T](length)
ts.copyToArray(result, 0)
result
}
def size(a: Array[T]) = a.length
def foreach(a: Array[T])(f: T => Unit) = a.foreach(f)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eed3si9n
eed3si9n merged commit 6a13d42 into sbt:develop Sep 23, 2025
9 checks passed
@xuwei-k
xuwei-k deleted the Manifest-warning branch May 10, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants